Network Error in POST requests in React Native, but GET works normally.
weverson-luan
PROOP

3 months ago

Hi Railway community,

I have a backend hosted on Railway and a React Native mobile app consuming this API.

All GET requests work 100% correctly, without any instability. However, when the mobile app sends POST requests, the behavior is intermittent:

Sometimes the server responds normally, but sometimes the app receives:

Network Error

The strange part is:

The same POST requests work correctly for another client/environment.

The problem happens only in the mobile app with this specific backend/server.

Recently, I created another server/account, deployed the same backend there, and everything worked 100% without the intermittent POST issue.

So it looks like the problem may be related to the Railway environment, network, proxy, region, or some project/server configuration.

Context:

Backend hosted on Railway

Mobile app built with React Native

GET requests work normally

POST requests are intermittent

Sometimes response is received, sometimes React Native gets Network Error

Same backend deployed in another server/account works correctly

What I need help with:

How can I investigate this issue deeper on Railway?

Is there any known problem with POST requests, proxy timeout, region, rate limit, SSL, CORS, or request body handling that could cause intermittent Network Error only from mobile apps?

Any guidance would be appreciated.

Solved

2 Replies

Anonymous
HOBBY

2 months ago

Hey, is your issue resolved?

I have been facing this issue since last week. In my case, it's mostly 200 on Railway logs.. still showing "Network Request Failed", I haven't pushed any changes on my end either.

Edit: Latency is usually <10ms, so it can't be an issue.


25 days ago

Hey all, we have rolled out a fix for this. It turned out to be an issue with an upstream dependency.

Please let us know if you continue to see issues.


Status changed to Awaiting User Response Railway • 25 days ago


Railway
BOT

17 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway • 17 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...