Conversation
_fetch_remote sends requests to orcarouter.ai/models without a
User-Agent header. Many CDNs and WAFs (Cloudflare, AWS CloudFront
default rules) silently block or 403 requests with no User-Agent,
causing the unreachable-models tile to degrade to the static
fallback for a full TTL even when the remote is healthy.
Add a descriptive User-Agent header (orcarouter-lite/{version}) so
the request looks like a legitimate client rather than a bot.
There was a problem hiding this comment.
🐳 OrcaCode Review
✅ No findings — nothing to flag in this PR. Great work!
OrcaCode Review — Route Smarter. Ship Safer. Spend Less.
Engine-reported: 355 calls · 19.4M tokens · 98% cached
❤️ Share · Install OrcaCode Review
Free on GitHub — the review runs on your own OrcaRouter key. If it helped, a shout-out goes a long way.
Share: X · Reddit · LinkedIn
Follow: X · Discord · LinkedIn · OrcaRouter
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.
Orca-Code-Review — push 1
✅ no blocking findings
_fetch_remotehitsorcarouter.ai/modelswithout aUser-Agentheader. Many CDNs (Cloudflare, CloudFront default rulesets) silently 403 requests with no User-Agent, which makes the unreachable-models dashboard tile degrade to the static fallback for a full hour even when the remote is healthy and would return useful data.Adds
User-Agent: orcarouter-lite/{version}to the request headers. Two new tests verify both theUser-AgentandAcceptheaders are present.