#Application Error (Failed to respond)

6 messages · Page 1 of 1 (latest)

bitter hazel
#

Hi. It is my first time publishing a project and also first time on Railway.

I am trying to publish a .NET Core 6 WebAPI project with Postgres plugin. It uses a Dockerfile.
In the Dockerfile, ASPNETCORE_URLS env. var. is set to 'http://+:80;https://+:443' and it does seem to recognize the ports on the Deploy Logs. I also configured an env. var. on Railway's Variables section which is PORT=443.

But it doesn't seem to be accessible for some reason. The website throws Javascript errors every 10 seconds or so, and sometimes logs a message 'Not Authorized'

I do not know where the problem is. I couldn't find any solution online, neither from this Support section. Does anybody know how to solve such problem?

bitter hazel
#

UPDATE: As you might have guessed, I was using a custom domain for the application. I have just realized that Railway still provides a *.up.railway.app domain for my service. After I have entered it, I saw that it was a $PORT error. As I have mentioned in the previous message, I have set up the PORT environment variable correctly(i guess so). What should I do next?

sage crescent
#

Project ID please?

bitter hazel
bitter hazel
#

OK. I have solved the issue by deleting the PORT environment variable from Variables list. So, Railway started to give its own random ports. Anyone who faces the issue can try removing the PORT env. var.

shy heart
#

Can you please share your Dockerfile? I am facing the same issue.