Im trying to send sms using textmagic provider. To know where to send the sms I use the users array. I was able to successfully send sms with this using twilio with this code last time, but when I remove twilio and replace it with textmagic provider, sms are stuck at processing.
Summary
SMS sent using Textmagic provider are stuck at processing on Appwrite. User tried switching to Twilio which worked previously. They are not sure how to set a specific provider without creating a target. Trying to explore other options due to Twilio limitations. They are using cloud and node-sdk.
**Solution:** Disable Textmagic provider, enable Twilio, and then send the SMS to the user.
Steven
May 16, 2024, 04:32
This is on Appwrite cloud? What's your project ID?
Nikky
Rank 2: Process
May 16, 2024, 04:33
Yes. Project ID: 6638e4900002aa9f11a5
Steven
May 16, 2024, 04:34
Twilio worked, though?
Nikky
Rank 2: Process
May 16, 2024, 04:34
Im using cloud and node-sdk
Nikky
Rank 2: Process
May 16, 2024, 04:34
Yeah, I first tested twilio, and it worked. But when I switched to textmagic, thats when sms sent started to get stuck at processing.
Steven
May 16, 2024, 04:37
what's a timestamp in UTC one of those was expected to send?
Nikky
Rank 2: Process
May 16, 2024, 04:40
Im not sure if I understand this question, but I didnt set a schedule. With twilio it was sent right away, received with a bit of delay, but in appwrite messsages it was marked as sent.
Steven
May 16, 2024, 04:40
yes...so when did you create the message
Nikky
Rank 2: Process
May 16, 2024, 04:41
The first few in the list was sent a few minutes to an hour ago. The last one, I sent that yesterday and still in processing.
Nikky
Rank 2: Process
May 16, 2024, 04:43
But before I tested sending sms today, I removed the provider and added it again.
Steven
May 16, 2024, 04:43
is twilio still working?
Nikky
Rank 2: Process
May 16, 2024, 04:46
That, im not sure. I havent tried switching back as Im exploring other options due to Twilio's limitations.
Steven
May 16, 2024, 04:47
would you be able to test?
Nikky
Rank 2: Process
May 16, 2024, 04:49
I could. But I need to remove Textmagic provider?
I did not create target. Im using userId as it sets the phone and email as target. Or how could I set specific provider without creating a target? Cant set the provider for a target from console.
Steven
May 16, 2024, 04:50
you can disable the textmagic one, enable twilio, and then send to the user
Nikky
Rank 2: Process
May 16, 2024, 04:50
Okay, I'll try
Nikky
Rank 2: Process
May 16, 2024, 04:55
Using twilio works and I received the sms.
Steven
May 16, 2024, 04:55
weird....
Nikky
Rank 2: Process
May 16, 2024, 04:59
yeah... Im not sure as well. I also wanted to try the other provider Appwrite supports - MSG91. But they didnt send verification code when I try to access the Authkey page. 🤔