Error 502 between multiple projects through public network
pierro-mojito
PROOP

10 months ago

Hi guys,

I'm currently doing a permission-less app that can be deployed multiple times and where those apps can reach each others using on-chain information

I've setup 2 deployment to make some tests. And my 2 deployments can communicate sucesfully. But I have a issue only for a query, something that look like this :

curl --location 'https://.railway.app/' \
--header 'X-Signature: ' \
--header 'Content-Type: application/json' \
--data ''

When I do this call in my application, I have the following error :

{
  "severity": "warn",
  "timestamp": "2025-04-04T12:15:48.220463681Z",
  "message": "Failed to ....",
  "tags": {
     ...
  },
  "attributes": {
    "body": "{\"status\":\"error\",\"code\":502,\"message\":\"Application failed to respond\",\"request_id\":\"nTr59lM1TdWfQOtvR0I5Iw_603524580\"}",
    "level": "warn",
    "status_code": 502,
    "ts": 1743768945.4754088
  }
}

I don't understand why I have this behaviour only with this call. I've logged the request that is sended to try using postman and it worked well…

And on the receiver side, I don't see any log about this request. I should have at least one as I use the logger fiber middleware

Based on the "request_id" in the log, it is possible to get some information ?

17 Replies

pierro-mojito
PROOP

10 months ago

51eddb11-035d-477b-bdb2-a38dd58fc40d


passos
MODERATOR

10 months ago

Hey, on your receiver service, is there anything in the HTTP logs? Usually there's useful information there.


pierro-mojito
PROOP

10 months ago

Not for this call, but I have for others, that's why I don't understand :/


passos
MODERATOR

10 months ago

That shouldn't happen. Railway would show every HTTP request made, even if it results in a 502. I doubt it's a Railway issue but I'll wait for @Brody to confirm it.


passos
MODERATOR

10 months ago

Just to be sure, are we talking about HTTP logs from the service and not your application, correct?

1357733189036019700


brody
EMPLOYEE

10 months ago

what service in what environment?


pierro-mojito
PROOP

10 months ago

I was not aware for that sub tab, my bad

1357734371020247300


pierro-mojito
PROOP

10 months ago

1357734466189004800


passos
MODERATOR

10 months ago

Can you get us the browser URL for the service you're looking at right now?


pierro-mojito
PROOP

10 months ago

Of course : https://ai-api-orchestrator-b.up.railway.app
It's the deployment id number : 47f64ba0-dc50-436f-ba7b-6bb18f279788


passos
MODERATOR

10 months ago

We're looking for the dashboard URL you're using right now.



passos
MODERATOR

10 months ago

Yes, that one, thanks.


brody
EMPLOYEE

10 months ago

i'


brody
EMPLOYEE

10 months ago

I'm told fiber doesn't follow the http spec perfectly, maybe that's coming into play here.

do you have a MRE?


pierro-mojito
PROOP

10 months ago

Not for the moment but I can generate one if needed


brody
EMPLOYEE

10 months ago

yes please


Loading...