Application failed to respond
I can't access my API, Java Spring
Project ID: b51f61d9-67a1-4846-acb7-d1a757d09957
My application.yaml:
server:
address: 0.0.0.0
port: 5454
Solution:Jump to solution
have a look at these docs https://docs.railway.app/troubleshoot/fixing-common-errors
5 Replies
Project ID:
b51f61d9-67a1-4846-acb7-d1a757d09957
Solution
have a look at these docs https://docs.railway.app/troubleshoot/fixing-common-errors
It didn't help, they ask to set the usual ports, but they don't give an example of which ones for Spring, the standard 8080 didn't work, the custom 5454 too, I set the address 0.0.0.0 and so on.
I used to run applications on the 8080 port with the same Dockerfile and everything worked, but something has changed
as per the docs, your app needs to run on host 0.0.0.0 and the environment variable PORT
please have a thorough read of the docs page i linked
That's it, I realized my mistake, thank you