Skip to content
Back

msg91 does not work for otp

  • 1
  • Users
  • Accounts
  • Web
  • Self Hosted
gaurav_ch
18 Oct, 2023, 05:45

I am trying to integrate phone auth with msg91 and the OTPs are not getting triggered.

Doing docker logs appwrite-worker-messaging I get the following result:

TypeScript
[notice] Starting work on (Job{v1-messaging} | ID: aae6ddfb91a8fbb4b405d8318c1c83e5 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+919555217771","message":"461143","events":["."]}])
[critical] (Job{v1-messaging} | ID: aae6ddfb91a8fbb4b405d8318c1c83e5 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+919555217771","message":"461143","events":["."]}]) has failed Error: Call to a member function send() on null in /usr/src/code/app/workers/messaging.php:69
Stack trace:
#0 /usr/src/code/src/Appwrite/Resque/Worker.php(125): MessagingV1->run()
#1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Job.php(201): Appwrite\Resque\Worker->perform()
#2 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(303): Resque_Job->perform()
#3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(242): Resque_Worker->perform(Object(Resque_Job))
#4 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false)
#5 {main}

My environment variables are set properly as per the documentation but it does not work. I am using functions to create a user and trigger OTP but I cannot create a session in case of node-appwrite.

Self hosting v1.4.4

TL;DR
The user is reporting that msg91 is not working for OTP. They suggest creating a separate post if the problem still persists. They also mention to make sure msg91 is lowercase. Another user confirms that they are facing the same issue. The user is using self-hosting v1.4.5 and provides a link to an open issue on GitHub related to the problem. When checking the logs using ```docker logs appwrite-worker-messaging```, an error is encountered: "Call to a member function send() on null". The user mentions that their environment variables are set properly according to the documentation. They are using functions to create a
gaurav_ch
18 Oct, 2023, 07:09

looks like msg91 functionality is broken as there is already an issue open: https://github.com/utopia-php/messaging/issues/23

Abhishek
18 Oct, 2023, 18:04

I'm also facing the same issue! Self hosting v1.4.5

Drake
18 Oct, 2023, 18:26

did you make sure msg91 is lowercase?

Drake
18 Oct, 2023, 18:30

please create a separate post if you're still having problems

Drake
20 Oct, 2023, 18:03

msg91 does not work for otp

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more