Hi, I'm trying to setup passwordless auth (managed service), I've set up the managed core service bu...
d
Hi, I'm trying to setup passwordless auth (managed service), I've set up the managed core service but keep getting this error from the SuperToken API:
Error: 140438089361344:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
The service is running on a port locally and I've ensured to include
http://
and not
https://
in the
connectionURI
but that doesn't seem to fix the problem.
r
Hey! You need to use https. What error do you get with that?
Hey. You need to use https. What error do you get with that?
d
Copy code
Error: write EPROTO 140719774476224:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
r
Hmm. Seems like some issue with the machine you are running on. Does it have update root SSL certificates?
Or maybe some issue with the node js installation?
Can you try changing the connectionURI to https://try.supertokens.com and see if that works?
d
okay, doing that now.
It's the same response.
r
What about if you visit https://try.supertokens.com/hello on your browser. What do you see?
d
r
Right. So that works
It probably means somethings wrong with the node installation on your system. Maybe upgrade the node version or google this error?
d
Okay, does SuperToken use the SSL cert on my machine or how does the https connection work locally?
Probably it could be related
r
We have our own SSL certs issued by let’s encrypt. Your machine recognises it (otherwise the hello screen wouldn’t load)
Just some issue with nodejs
Maybe just upgrading it wil work
d
alright, got it. Thanks.
Hey. I've been able to figure out what went wrong. The mail configuration has been set wrongly all these while so that's where the error was coming from
I'm trying to use a local dev mail but the password field is required for the type to check and in my case, I don't even want to have the authentication enabled.
Is there a way I can modify this behaviour in SuperTokens?
r
Hey yea. Maybe you could open an issue about this to make password optional. And we can do it that way. Until then, you can override the sendRawEmail function using the override config next to the smtpSettings config to send the email yourself using nodemailer
d
Got it. Thanks for the help!
42 Views