https://supertokens.com/ logo
m

mas_dwi

07/25/2022, 12:35 PM
hello guys. I just used Supertokens Social login + Email Password and it worked fine, and this time I used the Paswordless recipe, and found a problem. I have followed the steps in the guide, and using Self Hosted Without Docker PostgreSQL, the problem is when I enter the phone number into the form, and the response from the API is 500 INTERNAL SERVER ERROR. And once again I rechecked the steps in the guide, to make sure there were no steps left behind. After that, I run my application again, and get the same error. please help me. 🙂
r

rp

07/25/2022, 12:41 PM
How have you configured the core's connectionURI? Also, are you running your backend API in docker?
m

mas_dwi

07/25/2022, 12:45 PM
this is my config, im not using docker, just install supertokens in my laptop
r

rp

07/25/2022, 12:46 PM
are you running the core on port 4000?
m

mas_dwi

07/25/2022, 12:47 PM
yes
r

rp

07/25/2022, 12:47 PM
or the default one (3567)
hmm
can you go to your browser and navigate to http://localhost:4000/hello
what does that return?
m

mas_dwi

07/25/2022, 12:48 PM
this is the return
r

rp

07/25/2022, 12:49 PM
hmm. so the core is running
For some reason, your node process is not being able to contact the core
can you try removing the apiKey and see what happens?
m

mas_dwi

07/25/2022, 12:51 PM
okey, i'll try it
still same problem
r

rp

07/25/2022, 12:52 PM
strange
earlier, when you said the email passwords auth was working, what was your setup then?
m

mas_dwi

07/25/2022, 12:53 PM
its same u know 🙂
r

rp

07/25/2022, 12:53 PM
hmm
m

mas_dwi

07/25/2022, 12:54 PM
just change the import for Passwordless
and some adjust
but still same config
r

rp

07/25/2022, 12:54 PM
can you enable debug logs on the backend and show the output when you call the API?
m

mas_dwi

07/25/2022, 12:56 PM
wait
like this ?
m

mas_dwi

07/25/2022, 1:02 PM
this is the response
r

rp

07/25/2022, 1:03 PM
hmm. Which version of the core are you using?
m

mas_dwi

07/25/2022, 1:05 PM
this is my version
r

rp

07/25/2022, 1:17 PM
right. This is the latest version.
Im honestly not sure why this is happening
Can we get on an quick debugging call?\
m

mas_dwi

07/25/2022, 1:18 PM
What does that mean?
r

rp

07/25/2022, 1:19 PM
I mean try and debug this on a call
easier to see whats happening
m

mas_dwi

07/25/2022, 1:22 PM
okey
but my english is not fluent enough
r

rp

07/25/2022, 1:22 PM
ah right.
m

mas_dwi

07/25/2022, 1:22 PM
im using node 18.6
r

rp

07/25/2022, 1:22 PM
can you replace the connectionURI with
https://try.supertokens.com
and see what happens?
m

mas_dwi

07/25/2022, 1:22 PM
ah, its success
with this
r

rp

07/25/2022, 1:23 PM
hmm
so definitely something wrong with how you the node process is trying to reach localhost
m

mas_dwi

07/25/2022, 1:24 PM
Actually, I installed the backend when my node was still version 16.
Is there any effect?
r

rp

07/25/2022, 1:25 PM
hmm. Maybe
try remocing package-lock, node_moduless
and then reinstalling
m

mas_dwi

07/25/2022, 1:25 PM
okey
still the same
i think i wanna try previous recipe
r

rp

07/25/2022, 1:46 PM
Can you try running it with node 16 and see what happens?
> i think i wanna try previous recipe This should not make a difference
m

mas_dwi

07/25/2022, 1:46 PM
okey, i want try this
good news
working normal in 16
r

rp

07/25/2022, 1:56 PM
oh nice! ok. So seems like some issue with node 18 and how we are querying the core
can you open an issue about this on our github? We can have a look
m

mas_dwi

07/25/2022, 1:57 PM
hemm i'll try it
btw, thank u very much rp
👍
r

rp

07/25/2022, 1:58 PM
happy to help 🙂
m

mas_dwi

07/25/2022, 2:10 PM
r

rp

07/25/2022, 2:10 PM
thank you
m

mas_dwi

07/25/2022, 2:10 PM
your welcome, thanks for the help 😁