When running code from docker i am getting this e...
# support-questions
y
When running code from docker i am getting this error , do we need to expose some ports , otherwise working fine for normal local version
r
Hey!
Can you explain the setup please? What are you running in docker?
y
i am running it with NODE with fastify on local PC / AWS , both places getting the same issue
r
Can you visit the that f487…supertokens.io url on your browser at the /hello path?
What do you see if you do that?
Make sure to add the right port to that url. The port for that url isn’t 80 or 443. You should visit Our dashboard and see the port
y
from browser its fine
r
Right. Have you disabled outgoing ports for the docker env? There is nothing that needs to be done specially for this to work.
y
naa nothing is disabled
here its not picking the port
r
What’s the connectionURI provided to the supertokens.init?
y
Copy code
https://f487f461b44011ec98ed89cb2be9b480-ap-southeast-1.aws.supertokens.io:3572
r
Hmmm. Does the node app work if it’s not run in docker?
y
yess
without any issues
docker is also receiveing the proper URI
r
Hmmmm. CAn I see your docker file and the docker run command?
y
fastify.listen(fastify.config.PORT, fastify.config.HOST) HOST here is - 0.0.0.0
can this be issue some issue ?
its a standard docker file and RUN command
r
Probably not.
Can you give an invalid connectionURI in the env var and see if the error is the same? Some URI that you know doesn't exist
y
this is without docker , running node app directly
Copy code
connectionURI: 'https://f480-ap-southeast-1.aws.supertokens.io:3572'
r
I see. So even if the port is being picked up (which it is), the error doesn't mention it
So then the issue is probably with docker somehow not allowing you to query this port
y
same error running with docker
r
if you can share your dockerfile, how you are running it, the docker version and the OS you are using, that would be helpful
this is more of a docker setup issue than a supertokens' issue
y
ok , i will create a repo and will share you in an hour or so
r
sounds good
y
meanwhile can u ask any of your exisitng customer in case they are using docker and got this issues ?
r
most of them use docker. However, none of them have complained about this.
2 Views