Open Pikachews opened 3 months ago
Hello, thanks for filing this. We'll look into this.
We looked into this some more, and you are right, the behavior we have today is inconsistent here. I opened an issue to track this, we'll try to fix this soon: https://github.com/getsentry/sentry-javascript/issues/13260
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.22.0
Framework Version
14.2.4
Link to Sentry event
https://test-application-g0.sentry.io/issues/5682136612/?project=4507729342496768
Reproduction Example/SDK Setup
sentry.server.config.ts
/sentry.edge.config.ts
pages/api/test-error.ts
Steps to Reproduce
/api/test-error
Expected Result
The IP address field should be the one contained in
X-Forwarded-For
orX-Real-Ip
.Actual Result
The IP address used is always
ip:::ffff:127.0.0.1
(or some variant of localhost).