docs(errors): the debug field is redacted, not raw upstream text - #96
Merged
Merged
Conversation
It promised "raw upstream text", and raw was the bug. Reproduced unauthenticated against production on 2026-09-10: requesting nvidia/nemotron-3-nano-omni-30b-a3b-reasoning returned a debug string linking to openrouter.ai, for a model whose owned_by is deliberately rewritten to nvidia. Gateway fix in BlockRunAI/blockrun. Credentials, URLs and routing infrastructure are now stripped before the response is sent. The status code and the upstream's description of the fault survive, so the field still supports a bug report. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GJ6wG4k5TgeUgYneCMz1oc
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 doc promised
debug"carries the raw upstream text". Raw was the bug.Reproduced unauthenticated against production on 2026-09-10:
That model's
owned_byis deliberately rewritten away from the conduit. The debug string undid it in the same response.Gateway fix in BlockRunAI/blockrun. This just makes the documented contract match: credentials, URLs and routing infrastructure are stripped; the status code and the upstream's description of the fault survive, so the field still supports a bug report.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GJ6wG4k5TgeUgYneCMz1oc