Question about region & request headers
matthiasriener
PROOP

2 years ago

Hi, I am currently building a webhook feature for my customers, which means that they can add urls in the dashboard and I am calling their urls for certain events.

I noticed that the request headers from my webhook events are from the US, even though I have my server running in EU-West (Metal). Can someone explain, why that is?

Thanks

"headers": {

"host": "recipient-host",

"user-agent": "axios/1.7.9",

"content-length": "1028",

"accept": "application/json, text/plain, /",

"accept-encoding": "gzip, compress, deflate, br",

"content-type": "application/json",

"x-forwarded-for": "208.77.244.8",

"x-forwarded-host": "recipient-host...",

"x-forwarded-proto": "https",

"x-railway-edge": "railway/us-east4",

"x-railway-request-id": "haN_gPTbRi6bbv54ivCjCg_2074704348",

"x-real-ip": "208.77.244.8",

"x-request-start": "1741343359764"

},

Closed

6 Replies

matthiasriener
PROOP

2 years ago

24a11dae-4173-43d8-a81d-a6a15b852ad7


2 years ago

The x-railway-edge refers to the edge region close to the user that they're connecting through, not the region of your service. If they're connecting from the US, they go via the US edge


matthiasriener
PROOP

2 years ago

I see, I do have other services running in amsterdam which send requests to those servers. The railway-edge in the headers is still US.


2 years ago

Do you have an example URL that reproduces the issue? I recently made https://function-bun-production-9190.up.railway.app/ for something unrelated I was testing and it shows my header as railway/europe-west4 as expected when I reach it from within Europe



2 years ago

well the public page doesnt show its in Europe, but it is


Welcome!

Sign in to your Railway account to join the conversation.

Loading...