https://supertokens.com/ logo
Title
p

productdevbook

02/28/2023, 9:07 AM
/auth/dashboard
invalid token error
n

nkshah2

02/28/2023, 9:12 AM
Hi @productdevbook Could you elaborate on the issue you are facing?
Does the API return this?
p

productdevbook

02/28/2023, 9:13 AM
this live production api
but i have no idea how to debug it
server running
n

nkshah2

02/28/2023, 9:13 AM
Which API returns invalid token?
p

productdevbook

02/28/2023, 9:14 AM
console.log no see see html bottom after hidden
n

nkshah2

02/28/2023, 9:15 AM
Can you post the full error?
Are you using the same api key that you set in your backend when initialising the dashboard recipe?
p

productdevbook

02/28/2023, 9:19 AM
yes
n

nkshah2

02/28/2023, 9:20 AM
What backend SDK are you using?
And version
p

productdevbook

02/28/2023, 9:20 AM
POSTGRESQL_USER=postgres
POSTGRESQL_PASSWORD=467fcasdasdasdasd
POSTGRESQL_DATABASE_NAME=postgres
POSTGRESQL_TABLE_SCHEMA=auth
POSTGRESQL_HOST=devserver_db
POSTGRESQL_PORT=5432
API_KEYS=9e0342ce8e5db4asdasdads
iam used docker
registry.supertokens.io/supertokens/supertokens-postgresql:4.4
n

nkshah2

02/28/2023, 9:20 AM
And what sdk and version are you using for the backend? (Node, python etc)
p

productdevbook

02/28/2023, 9:21 AM
"supertokens-node": "^13.1.1", "fastify": "^4.13.0", nodejs 18
n

nkshah2

02/28/2023, 9:22 AM
Can you post the code for where you initialise the dashboard recipe?
p

productdevbook

02/28/2023, 9:23 AM
ovvv soryyy 🤦‍♂️ this apikey dont change old
apiKey: env.supertokens.apiKey,
iam change env now thank you
n

nkshah2

02/28/2023, 9:24 AM
Happy to help
p

productdevbook

02/28/2023, 9:36 AM
login and after see problem
n

nkshah2

02/28/2023, 9:38 AM
Does your normal sign in flow work?
For the actual website
(Not the dashboard)
p

productdevbook

02/28/2023, 9:40 AM
same problem
signup, singin
n

nkshah2

02/28/2023, 9:42 AM
Can you post the full supertokens init config
For your backend
What is the connectionUri (for the core) you are using?
When you call supertokens init on your backend
What are the values you are using under
env.supertokens
Whats the value of
env.supertokens.connectionURI
p

productdevbook

02/28/2023, 9:46 AM
docker url
n

nkshah2

02/28/2023, 9:47 AM
Can you change it to
http://devserver-supertokens:3567/
and try? Note you will have to change it in your compose file and other places you use this URL as well
p

productdevbook

02/28/2023, 9:48 AM
this now value used, do i need to change this ?
do i have to export supertokens as a url ?
n

nkshah2

02/28/2023, 9:49 AM
Use
http://devserver-supertokens:3567/
and make sure to restart everything after
p

productdevbook

02/28/2023, 9:53 AM
this supertokens docker logs
n

nkshah2

02/28/2023, 9:53 AM
Everywhere you use
http://devserver_supertokens:3567/
->> Change it to
http://devserver-supertokens:3567/
p

productdevbook

02/28/2023, 10:01 AM
this server
n

nkshah2

02/28/2023, 10:02 AM
Make sure to change it everywhere, including your compose file so that the docker service name also changes
p

productdevbook

02/28/2023, 10:03 AM
only working _
this your supertokens problem
_
n

nkshah2

02/28/2023, 10:04 AM
The problem is that the URL validation is failing because of
_
, while this is something we will fix you can use
-
instead as a workaround
p

productdevbook

02/28/2023, 10:05 AM
But it does not provide this communication between Docker, we do not use it in another place.
Our Docker management system only provides communications with _.
example supertokens docker db ->
POSTGRESQL_HOST=devserver_db
n

nkshah2

02/28/2023, 10:06 AM
Which docker management system is this?
p

productdevbook

02/28/2023, 10:07 AM
n

nkshah2

02/28/2023, 10:26 AM
Right so you would need to create a new service with easypanel and set the name with
-
. Besides that there isnt much we can do to help here. We have an issue open about this that you can track: https://github.com/supertokens/supertokens-core/issues/574
p

productdevbook

02/28/2023, 10:40 AM
thank you, I hope it will be resolved soon