#I get server error 500, and no logs

30 messages · Page 1 of 1 (latest)

blissful bay
#

I was on the trial plan for railway which ended around 20 days ago. As I was on vacations, and did not have my card setup, therefore the subscription failed to renew and my API was removed/disabled. I recently purchased the hobby plan, and re-deployed my code (from the option in railway, and not by changing anything on Github) as it had stopped due to non-payment and removed.

Now, it says redeployment successful, but when I try to access the endpoint I get a 500 server error, with no logs on what's happening.

The deployment logs says that the build was successful?!

I do not want the API URI to change, as all my mobile applications are using it.

Please help.

Deployment id: dea35d60-86ea-4917-9704-c765da9d6e4b

earnest escarpBOT
#

Project ID: dea35d60-86ea-4917-9704-c765da9d6e4b

somber charm
blissful bay
#

My log explorer is empty, where as I get this error when I try to access the API/deployed web-application.

somber charm
#

please use the bookmarklet

blissful bay
#

These are the build logs, the deployment logs are empty and when using the bookmarklet to fetch them I get a prompt saying "The API didn't return any log lines".

somber charm
#

mind sending the build logs for the last deployment that did work?

blissful bay
#

This one worked like a charm, the thing is that it got suspended due to non-payment, and when I redeployed, it does not work anymore.

Nothing has changed on the Github, so in theory it should work as previous.

#

What do you suggest, I redeploy it by pushing something on Github?

somber charm
#

that couldnt hurt, please try that. but are you able to send the build logs for the last deployment that worked?

blissful bay
somber charm
#

i see a different start command? hypercorn main:app --bind "[::]:$PORT" vs python main.py from your latest deployment

blissful bay
#

The thing that frustrates me is that I am getting a internal server 500 error and ZERO logs to get an idea of what's going on.
Even the slightest hint of what's wrong will guide me in the right direction.

blissful bay
somber charm
#

instead of changing something on github

#

the redeploy you used on railway does not re-fetch and re-deploy your repo, so there is a chance it re-deployed much older code, this bookmarklet will deploy from github again

blissful bay
full quarryBOT
somber charm
#

yeah looks like railway re-deployed a much much older version of your code and things just got wonky

blissful bay
#

Strange that the "re-deploy" does not fetch from Github, this could be an improvement.

somber charm
#

i wish haha but thats why the bookmarklet exists

#

but for clarity, was this the button you used?

blissful bay
#

Thank you so much for the assistance today man! I marked your answer as the solution.
Btw how do you get all these bookmarklets?

somber charm
#

i made them

blissful bay
somber charm
#

@turbid atlas - 3 dot menu > redeploy, deployed old code

blissful bay
# somber charm i made them

Aren't they like listed somewhere on the railway website where I can explore them? Will look into the source code to find out more, there should be like a marketplace for these or something, I too will be interested in developing them

somber charm
blissful bay
#

Will surely check them out, thanks!