Deploy is OK but cant access the domain
Hi!
I just deployed a NodeJS aplication and everything worked well. I checked the logs section and my app is active, as expected. But, i cant access the routs (ex: "/" ou "/api"). When i hit the endpoint, i get the "Application failed to respond", with the title: "Server error".
I generated a custom domain and didnt worked too. Someone can help me?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186410436816535553/image.png)
16 Replies
Project ID:
N/A
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186410484132478996/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186410568232476722/image.png)
Project ID: 8587792
Service id: 183c9eb8-3ea7-4728-b9c6-b7899c4befbe
Make sure you're listening on the port railway provides
Solution
For more info: https://docs.railway.app/guides/fixing-common-errors
Hmm i'll check this now
@Fragly , can you tell me where i can find this PORT variable provided by Railway?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186432978449076275/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186433066441384047/image.png)
please read further down the page, there are code examples
I did
But im not sure i understand
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186437757476798514/image.png)
But, what is the value?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1186437978466300014/image.png)
i get it now. Its done. Its working. I was looking for some value but the variable was enough
awesome