hyperdx icon indicating copy to clipboard operation
hyperdx copied to clipboard

API unauthorize

Open rigun opened this issue 4 months ago • 5 comments

I’m trying to deploy my application using Nginx as a reverse proxy for the domain https://hyperdx.example.com. However, all network requests directed to /api are consistently returning an “Unauthorized” error. I'm not sure if it's related to header forwarding, cookie handling, or proxy configuration.

rigun avatar Aug 02 '25 12:08 rigun

I am using the Helm chart to deploy HyperDX and am facing the same issue where trying to communicate with the API on port 8000 always returns a 401.

mnafees avatar Aug 07 '25 20:08 mnafees

Hello @mnafees, @rigun , I submitted an issue then discovered this issue which is part of my submission. In my case I could not even send OTEL data. Can you kindly review my environmental variables, shared in issue #1130, and advise if they are correct/complete? I assume you can send OTEL data in your case. Thank you in advance.

Ceyword avatar Sep 02 '25 15:09 Ceyword

This is the problem with secure cookies.

Just add X-Forwarded-Proto: https

Example for nginx:

proxy_set_header X-Forwarded-Proto $scheme;

evsinev avatar Sep 19 '25 23:09 evsinev

Did anyone could solve this issue ? I am still getting the same issue.

Deployed using helm chart.

@evsinev i tried this but it didn't work

Image

aakramadfoat avatar Sep 29 '25 17:09 aakramadfoat

Solved for me

HYPERDX_APP_URL=<domain_url> HYPERDX_API_URL=<domain_url>

simadimonyan avatar Oct 03 '25 16:10 simadimonyan