Fix HTTP logs until timestamp format#1009
Open
tmoran6 wants to merge 2 commits into
Open
Conversation
HTTP log history queries use cursor-style beforeDate and anchorDate fields. The CLI parsed --until into UTC and serialized it with to_rfc3339(), producing +00:00, while the HTTP logs cursor API expects the same Z-suffixed timestamp format already used by network-flow logs. As a result, railway logs --http --until returned the backend's generic Problem processing request error. This change shares the cursor timestamp formatter between HTTP and network-flow log queries and adds a regression test for bounded HTTP log windows. The original ask was to prepare a Railway CLI fix branch without opening a PR.
Keep the bounded HTTP log fix as small as possible by preserving the existing network-flow log helper and window structure. The only runtime change now maps HTTP log beforeDate and anchorDate through a tiny HTTP timestamp formatter that emits the Z-suffixed cursor timestamp format accepted by the API. This responds to the request to minimize the patch while retaining the existing function structure.
m-abdelwahab
self-requested a review
July 9, 2026 18:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
railway logs --http --untilsends cursor timestamps with a+00:00offset, which the HTTP logs API rejects asProblem processing request.This formats HTTP log cursor timestamps with the same nanosecond
Zformat used by network-flow logs and adds a regression test.Validation:
cargo test;cargo fmt -- --check;cargo clippy.