Skip to content

llm-proxy: an upstream error reaches the caller as its type only - #994

Merged
vaaraio merged 5 commits into
mainfrom
fix/proxy-error-surface
Oct 18, 2026
Merged

vaaraio merged 5 commits into
mainfrom
fix/proxy-error-surface

Conversation

@vaaraio

@vaaraio vaaraio commented Oct 18, 2026

Copy link
Copy Markdown
Owner

When the upstream connection failed, the proxy returned the httpx error text to the caller. That text can name internal hosts and ports. The reply is now upstream unreachable: <ErrorType> for both the chat path and the pass-through path, and the operator's log line keeps the full message.

The startup line prints the upstream URL with any user:password@ replaced by ***@.

Tests: a connection error to an internal address returns only the type, and the printed upstream hides userinfo. Closes CodeQL 321, 344 and 357.

A failed upstream connection returned the httpx error text to the agent,
which can name internal hosts and ports. The reply now says
"upstream unreachable: <ErrorType>"; the operator's log keeps the full
text. The startup line also prints the upstream with any user:password
replaced by ***. Closes CodeQL 321, 344, 357.
@vaaraio
vaaraio enabled auto-merge (squash) October 18, 2026 15:28
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6f66113f-9b61-4c43-9da0-922466bef81f
📥 Commits

Reviewing files that changed from the base of the PR and between 766a8e9 and 3725010.

📒 Files selected for processing: 3
  • src/vaara/integrations/_llm_proxy_app.py
  • src/vaara/integrations/llm_proxy.py
  • tests/test_llm_proxy_usage.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vaaraio
vaaraio merged commit b908ef1 into main Oct 18, 2026
32 checks passed
@vaaraio
vaaraio deleted the fix/proxy-error-surface branch October 18, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant