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

15 days 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.

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...