I'm trying to setup the dashboard. When I run the command to create a new user, it says "Not Found"
d
I'm trying to setup the dashboard. When I run the command to create a new user, it says "Not Found"
n
Hi @dhatguy Can you post the curl you are trying to send? (Removing any API keys)
d
Copy code
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
Did you create the app on supertokens.com recently?
d
the dashboard works before. stopped working when I upgraded supertokens
it works before using the apikey
n
Right, what backend SDK and version did you upgrade to?
d
supertokens-node v13.5.0
n
Whats the supertokens core version do you see in your supertokens.com dashboard? It will appear next to your dev/production instance like this:
d
v3.13
n
Whats the config you provide to the
init
call in your backend?
d
for the dashboard recipe?
n
Yep
d
nothing. just
Dashboard.init()
n
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
okay. I tried the api key based auth but was getting invalid key
lemme try again
Copy code
Dashboard.init({
  apiKey: "randomkey",
})
getting invalid API key
n
Can you post a screenshot of the error from the browser network tab?
d
n
What are the headers being sent?
d
n
Just checking, are you by chance typing
randomKey
instead of
randomkey
d
ah yes
but the error persists
n
Same response?
d
yes, same response
n
What framework are you using?
d
express
n
Hmm, this might be easier to debug on call. If thats fine I can send you a link
d
alright, no problem
or I can send the mail to upgrade the core
n
Sure you can do that too
d
how soon will that happen?
n
An hour or so (a couple if our devs are busy)
d
alright, thanks for your help
n
Happy to help
28 Views