hasura-backend-plus
hasura-backend-plus copied to clipboard
SSL Wrong Version Number Error
Describe the bug When user's registers, I get the following error:
To Reproduce Steps to reproduce the behavior:
- Set
AUTO_ACTIVATE_NEW_USERS="false"
- Enable emails with SMTP
- Send a
POST /auth/register
Expected behavior Register a user successfully
Desktop (please complete the following information):
- OS: Ubuntu
- Browser Safari
- Version 2.7.1
Additional context
[Error: 140369955355976:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
] {
library: 'SSL routines',
function: 'ssl3_get_record',
reason: 'wrong version number',
code: 'ESOCKET',
command: 'CONN'
}
I've seen this bug with some SMTP vendors.
Could be related to this: https://github.com/nodemailer/nodemailer/issues/165#issuecomment-20733858
@joshmedeski Can you also try to set SMTP_SECURE: false
?
That fixed it. I may change the port numbers and turn SMTP_SECURE back to true.
@elitan that was also the error message that we received. Not finished with testing / fixing, works for some mails, but some users receive the mail now in their spam folder. Will try to provide clearer picture.