R
Railway16mo ago
nlits

503 server error

I got a streak of 503 server errors. The requests right before and after this streak were normal 200 requests. Was there a hosting issue/downtime? This happened on May 21, 2023
Solution:
It's much more likely a code issue than a Railway issue. There are many reasons why your snake could've errored at the beginning of a match. Your code might not handle multiple games well, it might've been using all its processing on another game, or it could've just been hanging
Jump to solution
24 Replies
Percy
Percy16mo ago
Project ID: 7afe5be9-0302-4917-a5b9-22869e2f0c67
nlits
nlits16mo ago
7afe5be9-0302-4917-a5b9-22869e2f0c67
Adam
Adam16mo ago
Are you still having this issue?
nlits
nlits16mo ago
Have not check recently (found this on battlesnake, lost a game because of it) My site will be online tonight, and I will check again Also, please ping on reply Or I might miss this
Adam
Adam16mo ago
Battlesnake’s 503 errors don’t tell you much. Just means your server didn’t respond in time. Very likely a code issue as Railway didn’t have any downtime for existing deployments on the 21st next time before posting a help post, look at the logs of your snake. Those will likely tell you everything you need to know you can look at the logs of your bots old deployments on the deployments tab. If you’re interested in what happened, find the logs at the timestamp of when your snake didn’t respond. 99.9% of the time the issue won’t be on Railway’s side. Railway is pretty stable
nlits
nlits16mo ago
My snake is not the best designed, and does not log out timestamps. I remember checking the game tho and nothing went wrong server side
Adam
Adam16mo ago
Railway logs timestamps Just tick the show timestamps button @not logged in
nlits
nlits16mo ago
ok but battlesnake does not
Adam
Adam16mo ago
Adam
Adam16mo ago
But you could check your logs on the 21st for any errors that may have happened
nlits
nlits16mo ago
No logs found containing May 21
Adam
Adam16mo ago
Each deployment has different logs Try looking in a different deployment
nlits
nlits16mo ago
ik, but does the search feature search timestamps?
Adam
Adam16mo ago
no clue ctrl f exists though
nlits
nlits16mo ago
I will have to click "load more" so many times tho (My battlesnake logs the game board every move)
Want results from more Discord servers?
Add your server