N
Novu14mo ago
winsoroaks

using novu-sms provider running into 21612

hi team! im using novu sms provider but running into some errors. here are the details. my email was sent successfully tho
{
"providerId": "novu-sms",
"identifier": "novu-sms-YQrT1DHao",
"name": "Novu SMS",
"_environmentId": "6533e279ab2da22debe205db",
"_id": "6533e27bab2da22debe2061c"
}

# Unexpected provider error
{
"status": 400,
"code": 21612,
"moreInfo": "https://www.twilio.com/docs/errors/21612"
}
{
"providerId": "novu-sms",
"identifier": "novu-sms-YQrT1DHao",
"name": "Novu SMS",
"_environmentId": "6533e279ab2da22debe205db",
"_id": "6533e27bab2da22debe2061c"
}

# Unexpected provider error
{
"status": 400,
"code": 21612,
"moreInfo": "https://www.twilio.com/docs/errors/21612"
}
3 Replies
Pawan Jain
Pawan Jain14mo ago
@hbeltik Checkout this error information from twilio https://www.twilio.com/docs/api/errors/21612 It seems like you are using invalid receipent number or invalid sender id
Error 21612
Error 21612: Message cannot be sent with the current combination of "To" and/or "From" parameters
winsoroaks
winsoroaksOP14mo ago
hey, thanks for the response. i double checked and confirmed my number is a valid number (i tried both of my numbers). im not sure how to check the twilio part since im doing purely novu code? how do i tell im using an invalid sender ID?
await novu.trigger("account-activation", {
to: {
subscriberId: "1234567890",
phone: "MY_VALID_NUMBER",
email: email,
},
payload: {
companyName: "company",
confirmationLink: "http://localhost:3000/",
verificationLink: "http://localhost:3000/",
},
})
await novu.trigger("account-activation", {
to: {
subscriberId: "1234567890",
phone: "MY_VALID_NUMBER",
email: email,
},
payload: {
companyName: "company",
confirmationLink: "http://localhost:3000/",
verificationLink: "http://localhost:3000/",
},
})
Pawan Jain
Pawan Jain14mo ago
Hi @hbeltik Check your DM
Want results from more Discord servers?
Add your server