https://supertokens.com/ logo
Issue with Dashboard
d

dhatGuy

05/04/2023, 10:30 AM
I'm trying to setup the dashboard. When I run the command to create a new user, it says "Not Found"
n

nkshah2

05/04/2023, 10:31 AM
Hi @dhatGuy Can you post the curl you are trying to send? (Removing any API keys)
d

dhatGuy

05/04/2023, 10:32 AM
curl --location --request POST 'https://82faxxxx-ap-southeast-1.aws.supertokens.io:3569/recipe/dashboard/user' \
--header 'rid: dashboard' \
--header 'api-key: GM4xxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{"email": "mail@gmail.com","password": "password"}'
n

nkshah2

05/04/2023, 10:33 AM
Did you create the app on supertokens.com recently?
d

dhatGuy

05/04/2023, 10:34 AM
the dashboard works before. stopped working when I upgraded supertokens
it works before using the apikey
n

nkshah2

05/04/2023, 10:34 AM
Right, what backend SDK and version did you upgrade to?
d

dhatGuy

05/04/2023, 10:35 AM
supertokens-node v13.5.0
n

nkshah2

05/04/2023, 10:36 AM
Whats the supertokens core version do you see in your supertokens.com dashboard? It will appear next to your dev/production instance like this:

https://cdn.discordapp.com/attachments/1103629681862905909/1103631113047511150/Screenshot_2023-05-04_at_4.05.18_PM.png

d

dhatGuy

05/04/2023, 10:36 AM
v3.13
n

nkshah2

05/04/2023, 10:37 AM
Whats the config you provide to the
init
call in your backend?
d

dhatGuy

05/04/2023, 10:38 AM
for the dashboard recipe?
n

nkshah2

05/04/2023, 10:39 AM
Yep
d

dhatGuy

05/04/2023, 10:41 AM
nothing. just
Dashboard.init()
n

nkshah2

05/04/2023, 10:42 AM
Right so if you want to use the API key based authentication with the dashboard you will need to provide a api key to use to the dashboard recipe To use the email password based login you will need to upgrade to the latest SuperTokens core version. If you want to do this you can email us at team@supertokens.com using the email you signed up with on supertokens.com
d

dhatGuy

05/04/2023, 10:43 AM
okay. I tried the api key based auth but was getting invalid key
lemme try again
Dashboard.init({
  apiKey: "randomkey",
})
getting invalid API key
n

nkshah2

05/04/2023, 10:47 AM
Can you post a screenshot of the error from the browser network tab?
d

dhatGuy

05/04/2023, 10:51 AM

https://cdn.discordapp.com/attachments/1103629681862905909/1103634921190342736/image.png

n

nkshah2

05/04/2023, 10:51 AM
What are the headers being sent?
d

dhatGuy

05/04/2023, 10:52 AM

https://cdn.discordapp.com/attachments/1103629681862905909/1103635351999873055/image.png

n

nkshah2

05/04/2023, 10:53 AM
Just checking, are you by chance typing
randomKey
instead of
randomkey
d

dhatGuy

05/04/2023, 10:54 AM
ah yes
but the error persists

https://cdn.discordapp.com/attachments/1103629681862905909/1103635879953707088/image.png

n

nkshah2

05/04/2023, 10:56 AM
Same response?
d

dhatGuy

05/04/2023, 10:56 AM
yes, same response
n

nkshah2

05/04/2023, 10:56 AM
What framework are you using?
d

dhatGuy

05/04/2023, 10:57 AM
express
n

nkshah2

05/04/2023, 10:58 AM
Hmm, this might be easier to debug on call. If thats fine I can send you a link
d

dhatGuy

05/04/2023, 10:58 AM
alright, no problem
or I can send the mail to upgrade the core
n

nkshah2

05/04/2023, 10:59 AM
Sure you can do that too
d

dhatGuy

05/04/2023, 10:59 AM
how soon will that happen?
n

nkshah2

05/04/2023, 11:03 AM
An hour or so (a couple if our devs are busy)
d

dhatGuy

05/04/2023, 11:03 AM
alright, thanks for your help
n

nkshah2

05/04/2023, 11:03 AM
Happy to help