Streetmerchant: SMS alert issue

Created on 10 Dec 2020  Â·  12Comments  Â·  Source: jef/streetmerchant

Expected Behavior

Send a text alert when a product is in stock

Current Behavior

I get a Certification error when testing my SMS notifications. I've tried my real Verizon number and a google voice number.

Steps to Reproduce



1 .npm run test:notification

Environment

windows 10:
.env file:


Logs

[10:27:58 AM] error :: ✖ couldn't send sms to 2164381888 for carrier google self signed certificate in certificate chain {
"code": "ESOCKET",
"command": "CONN",
"stack": "Error: self signed certificate in certificate chainn at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)n at TLSSocket.emit (events.js:315:20)n at TLSSocket._finishInit (_tls_wrap.js:932:8)n at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)"
}

needs triage

All 12 comments

Have you setup email properly?

Have you setup email properly?

im entirely sure, i didnt know what username and password it was asking for so i just made one up that corresponded to my gmail account.

Have you setup email properly?

im entirely sure, i didnt know what username and password it was asking for so i just made one up that corresponded to my gmail account.

For email setup at least with gmail you need to use an app password found in google settings.

Have you setup email properly?

im entirely sure, i didnt know what username and password it was asking for so i just made one up that corresponded to my gmail account.

If you use MFA, take a look at https://support.google.com/accounts/answer/185833?hl=en

[email protected]
EMAIL_PASSWORD=yourpassword

I get this:
image

I do have MFA setup, followed the instructions for that.

Oh interesting. So you are getting the email, but not the way you'd like -- is that correct?

Oh interesting. So you are getting the email, but not the way you'd like -- is that correct?

I am getting the email just fine, however I am not getting the SMS.
I receive 2 emails every drop - one "normal" email, and a second above which is an error which I assume to be about the SMS.

How are you setting your phone number? Should look something like this:

image

PHONE_NUMBER="6467470820" or PHONE_NUMBER="16467470820" (country code)

Format is this one:
PHONE_NUMBER="16467470820"

Format is this one:
PHONE_NUMBER="16467470820"

I just tested with country code and it didn't work. Perhaps try to remove it and see what happens.

Format is this one:
PHONE_NUMBER="16467470820"

I just tested with country code and it didn't work. Perhaps try to remove it and see what happens.

Removing the country code fixed it.
All set.

This needs to either be fixed or put as a note. I'll keep this open until we do either. Thanks for the report!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kylezoa picture kylezoa  Â·  3Comments

g1forfun picture g1forfun  Â·  5Comments

zhirzzh picture zhirzzh  Â·  5Comments

flatspotting picture flatspotting  Â·  4Comments

louij2 picture louij2  Â·  3Comments