Repository navigation
fix(logging): log unknown-account listings at debug, not ERROR - #282
Merged
Merged
Conversation
`GET /<account>?list-type=2` for an account that doesn't exist answers 404, which is routine, but the handler logged it at ERROR with the account name in the message. Every unknown account name became its own Workers Issue. Only a 5xx is now logged at ERROR; a 4xx is logged at debug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Claude finished @alukach's task in 13s —— View job ✅ No blocking issues — safe to merge. The change in Non-blocking:
Simplify (ponytail)Nothing to cut. The 💰 Estimated review cost: $0.08 · 0m12s · 4 turns |
|
🚀 Latest commit deployed to https://source-data-proxy-pr-282.source-coop.workers.dev
|
…at ERROR A 403 here means the Source API refused the proxy's own listing call, which is our fault and should still reach Workers Issues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
The account-listing handler (
AccountListHandlerinsrc/handlers.rs) now logs an unknown account (BucketNotFound, answered 404) at debug. Every other listing error is still logged at ERROR.Asking for an account that doesn't exist is routine:
GET /<account>?list-type=2for a mistyped or retired name answers 404. The handler logged it as[ERROR] … AccountList(<account>) error: BucketNotFound("not found"). Because the account name was in the message, Workers Issues opened a new group for every name; five appeared on 2026-11-19 alone, each a single 404. Once M1 (Worker issues) delivers (#283), each would also pagedevops.Only the 404 is quieted. Account listing calls the Source API as the proxy itself and never checks a client's signature, so any other error here is a fault on our side. That includes a 403, which would mean the API refused the proxy's own listing call. Those keep an ERROR line, now with
accountanderroras structured fields under a fixed message, so they still reach Issues and M1. Every response, the 404s included, is still recorded in Analytics Engine.Testing
cargo checkandcargo clippyforwasm32-unknown-unknownpass,cargo fmt --checkis clean, and the native test suite passes in the pre-push hook. No test covers the log level.🤖 Generated with Claude Code