Hi, i have a problem with "No SuperTokens core available to query"
i
Hi, i have a problem with "No SuperTokens core available to query"
r
hey! Whats the connection URI?
i
r
are you running it in a docker container? And by default, the core is only listening on localhost - so have you changed that?
i
yes, docker container
r
in docker, 127.0.0.1 points to inside the docker container.. so you cannot use that
you should checkout docker networking
i
i used url http://localhost:3567/ but got same problem
r
yea.. same issue
it points to inside the docker container and not another docker container
i
pfff and what can i do
r
use your machine IP address. Or use docker componse and put the service name
this is more of a docker networking issue than a ST issue
i
i have this structure
i run st container with docker compose on dev
and try to connect from auth2
to dev/supertokens
r
right, and your backend server is a docker container as well right?
i
yes
r
since you are using docker compose, you can use the bridge networking feature in docker and provide the supertokens service name in the connectionURI like ->
http://supertokens:3567
(assuming that thats the name of the service)
i
within dev i can connect to supertokens container as well
but from *-auth2/auth2....
ok, i will try to see bridge networking
I m trying to do it faster, but
🤥
Thanks very much🥰
Its working now
r
nice!
i
I spent 2 hours to make it works
)))
19 Views