https://supertokens.com/ logo
w

web3geek

06/05/2022, 8:50 AM
I sometimes/randomly get this message when I hit generate code API. What could be the reason? I'm always passing the phoneNumber.
r

rp

06/05/2022, 8:51 AM
Hey
Are you passing content-type application/json header in the request?
w

web3geek

06/05/2022, 8:52 AM
yes
r

rp

06/05/2022, 8:52 AM
Hmm
And the response code is 400?
Which version of the backend SDK are you using?
w

web3geek

06/05/2022, 8:54 AM
yes
"supertokens-node": "^9.2.0",
r

rp

06/05/2022, 8:55 AM
Which version does that resolve to?
w

web3geek

06/05/2022, 8:55 AM
?
not sure what you mean
r

rp

06/05/2022, 8:55 AM
As in you are using a ^, so it could either resolve to 9.2.0, 9.2.1 or 9.2.2 or 9.2.3
(9.2.3 being the latest version)
So which one is it using?
w

web3geek

06/05/2022, 8:56 AM
9.2.0
r

rp

06/05/2022, 8:57 AM
Can you upgrade to the latest version
9.2.3
w

web3geek

06/05/2022, 8:57 AM
i'll do it
r

rp

06/05/2022, 8:57 AM
And try again. There was a tiny bug that was fixed in 9.2.2 related to json parsing
w

web3geek

06/05/2022, 8:57 AM
okay cool
thanks
3 Views