“Sever Error” for Containerized Apollo Router
Hi,
I’m trying to host apollo router using docker container following the script from https://github.com/apollographql/router/blob/dev/dockerfiles/diy/dockerfiles/Dockerfile.release. I’ve tried locally, used and exposed port, the build and deploy log looks fine, but the endpoint shows “Server Error” and I couldn’t query through graphql playground as well.
8 Replies
You set the port correctly?
I think yes, the ‘43169’ came from $PORT env
Sorry, currently https://gateway-canary.up.railway.app/ shows “Application Error”
Don’t think we assign em that high
Try setting PORT=43169
In the “Variables” tab?
Yep
okay now its working
Should I keep the port configuration to 43169?
Yes
Well I mean you can change it just gotta update it
In the application
Ah okay, I just realized that railway can customize the port
cool, thanks for the support!