https://supertokens.com/ logo
Title
n

NoirLime

12/07/2022, 8:51 AM
Hi there, I'm facing an issue with Supertokens-Node: It seems that the validation request that supertokens-dashboard sends doesn't contain a application/json body, thus causing the request to error out.
r

rp

12/07/2022, 8:52 AM
hey @NoirLime
which backend web framework are you using?
n

NoirLime

12/07/2022, 8:52 AM
fastify
r

rp

12/07/2022, 8:52 AM
ok thanks. Can you please open an issue about this? We will fix it as soon as we can
@nkshah2 can help here
n

NoirLime

12/07/2022, 8:52 AM
running supertoken-node 12.1.2
r

rp

12/07/2022, 8:53 AM
ok thanks
we will fix it shortly.
n

nkshah2

12/07/2022, 8:53 AM
Can you check the console tab on the browser to see if there’s any errors?
that's the only error message dashboard emits
n

nkshah2

12/07/2022, 8:54 AM
Even when you refresh the page?
r

rp

12/07/2022, 8:54 AM
@nkshah2 it's mostly an issue with the dashboard code on how it's making the API request
n

NoirLime

12/07/2022, 8:55 AM
yep, even upon refresh
n

nkshah2

12/07/2022, 8:55 AM
Alright strange, I’ll take a proper look
n

NoirLime

12/07/2022, 8:57 AM
I implemented a hotfix that processes empty body requests, but that results in weird regression issues elsewhere.
once the Auth token is saved in localStorage, the dashboard proceeds without an issue
n

nkshah2

12/07/2022, 8:58 AM
Can you show us the request body for the validate call? The body should not be empty to begin with
n

NoirLime

12/07/2022, 9:00 AM
adding a console log to request.body only outputs "null"
n

nkshah2

12/07/2022, 9:00 AM
No I meant in the browser
The same way you sent the screenshot for the response body
n

NoirLime

12/07/2022, 9:02 AM
here's the data for the validate request
I doubt cookies have anything to do with the issue
r

rp

12/07/2022, 9:05 AM
yea.. these cookies are not really relevant for the dashboard
let us try this out with a fastify backend and see if we can replicate this issue. IF we can't replicate it, we will comment on the github issue you opened.
also, this may get fixed sometime next week - i hope that;s OK.
n

NoirLime

12/07/2022, 9:07 AM
yeah we have a workaround in place
right now we just manually set the localStorage string
r

rp

12/07/2022, 9:08 AM
ah right. Sounds good
Also, could you please send a screenshot of how the user list UI shows? The UI for the enter API screen seems off.. it should look like this
n

NoirLime

12/07/2022, 9:09 AM
upon refresh
upon verification fail:
r

rp

12/07/2022, 9:10 AM
ah right. that looks right
n

NoirLime

12/07/2022, 9:11 AM
r

rp

12/07/2022, 9:11 AM
this looks fine too
thanks
n

NoirLime

12/07/2022, 9:15 AM
DM me if you need help reproducing the issue. Happy to help!
r

rp

12/07/2022, 9:25 AM
thanks!