https://supertokens.com/ logo
s

shorthair_[]

07/25/2022, 11:32 AM
does anyone one know how to fix a http 500 error?
r

rp

07/25/2022, 11:35 AM
hey @shorthair_[] let's use this thread.
s

shorthair_[]

07/25/2022, 11:35 AM
hey rp!
this was the error
r

rp

07/25/2022, 11:52 AM
Can i see your init function?
on the backend
s

shorthair_[]

07/25/2022, 7:29 PM
sure thing
r

rp

07/25/2022, 7:31 PM
Can I see the input to the sign in api that you are providing? Are you calling the api manually, or our pre built ui?
s

shorthair_[]

07/25/2022, 8:51 PM
manually
r

rp

07/26/2022, 3:56 AM
alright! @KShivendu can help out with this.
k

KShivendu

07/26/2022, 4:49 AM
Hey @shorthair_[] , I think the issue is that frontend is passing a dict instead of string for
email
and
password
Please try using:
Copy code
{
  "id": "email",
  "value": email,
}
instead of
"value": {email}
(Which is actually passing
{"value": {"email": email} }
to the backend) same goes for the
password
field. Let me know if it helps ๐Ÿ˜„
s

shorthair_[]

07/27/2022, 8:14 AM
thanks so much it did work๐Ÿ˜„
r

rp

07/27/2022, 8:28 AM
awesome