Getting 400 errors on Prod
dev-toobrains
PROOP

a month ago

Applications on PROD were working perfection fine until the outages yesterday.

At first they were throwing 502 errors,and now they are throwing 400 errors.

There has been no code changes,they were working perfectly fine on PROD.

I have restarted and redeployed,but still its throwing 400 errors.

Please help. The app on PROD has been throwing errors and unusable for 48hrs now.

Solved

5 Replies

sam-a
EMPLOYEE

a month ago

All four of your services currently show SUCCESS deployment status with no infrastructure-level failures detected. The shift from 502 to 400 errors indicates your application is now running and responding, but the requests are being rejected at the application level rather than timing out at the gateway. Are you still seeing the errors?


Status changed to Awaiting User Response Railway 26 days ago


dev-toobrains
PROOP

a month ago

Yes,i'm still seeing the errors.

Which is strange because there were no code changes and application changes at all....so how did the application go from working perfectly fine to then throwing errors.


Status changed to Awaiting Railway Response Railway 26 days ago


sam-a
EMPLOYEE

a month ago

Can you share some of the logs that are showing the 400 errors so we can investigate further?


Status changed to Awaiting User Response Railway 26 days ago


dev-toobrains
PROOP

25 days ago

See attached the log files...The architecture is a front end angular with express and a directus headless cms as the backend connecting to postgres.The current code on prod has been retested on local and it doesn't throw any errors.


Status changed to Awaiting Railway Response Railway 25 days ago


dev-toobrains
PROOP

24 days ago

Sorted this out.....The issue was the database,had to isolate because i knew there were no code changes to throw app level errors all of a sudden.

i'm guessing the database rolled back to the initial deployment after the outage,but directus has been applying schema changes.So the app was throwing 400 errors when these changes weren't seen in the DB


Status changed to Solved dev-toobrains 24 days ago


Loading...