Skip to content

Wrong host names displayed in "Outbound API Requests" when requests are sent via a proxy. #5266

Closed

Description

@cjsoftuk

How do you use Sentry?

Self-hosted/on-premise

Version

2.47.0

Steps to Reproduce

  1. Configured environment variables http_proxy, https_proxy to send requests out via a proxy server (running tinyproxy).
  2. Inspected the "Outbound API Requests" feature in the web interface
  3. Observed that requests made via the proxy are logged with the proxy's hostname and port, rather than the eventual destination.

Expected Result

I'd expect to see these showing as calls to https://onlinetools.ups.com/api/track/v1/details/

Actual Result

Image

The calls to /api/track/v1/details/ are actually calls to https://onlinetools.ups.com/api/track/v1/details/, but show up as calls to https://bde-proxy.dchosted.net:8888/api/track/v1/details/ in the web UI

Activity

  1. linear commented on Dec 23, 2025

    @linear
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Dec 23, 2025
  3. bluemeaford commented on Dec 31, 2025

    @bluemeaford

    Thanks for the clear description — I might be missing something, but I wanted to clarify expected behavior before thinking about fixes.

    When requests are sent via a proxy, should the “Outbound API Requests” UI show:

    1. Only the final target host (the real destination),
    2. Both the proxy host and the target host, or
    3. Something else depending on configuration (e.g. specific headers)?

    Also:

    • What proxy configuration was used (HTTP_PROXY / HTTPS_PROXY env vars vs client-level config)?
    • Does the request include the real destination in headers like Host or X-Forwarded-Host?

    Clarifying this would help make any fix precise rather than guessy. Thanks!

  4. self-assigned this
    on Jan 13, 2026
  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jan 13, 2026
  6. added a commit that references this issue on Jan 19, 2026
    2585678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions