Skip to content
Back

phone authentication with Telesign

  • 0
  • Accounts
  • Web
malomz
30 Jul, 2023, 20:03

Hi,

I’m having issues with phone authentication using Telesign as the provider in a managed instance. I have configured the environment variables as required also.

However, when I make request to create a session I do not get any OTP on the specified number.

TL;DR
The user is experiencing issues with phone authentication using Telesign as the provider. They have configured the environment variables correctly. However, they are not receiving any OTP on the specified number. They are unsure why this is happening and are seeking assistance with checking the logs and resolving the issue. Solution: Check the logs in the messaging container and refer to the debugging documentation for further troubleshooting steps.
Drake
30 Jul, 2023, 20:28

Managed? Who's managing?

What do the logs in the messaging container say?

malomz
30 Jul, 2023, 20:31

I meant managed locally on Docker

malomz
30 Jul, 2023, 20:32

How do I check the logs?

Drake
30 Jul, 2023, 20:33
malomz
30 Jul, 2023, 20:46

` [notice] Starting worker 9262722158cb:7:v1-messaging

[notice] Starting work on (Job{v1-messaging} | ID: af9831044ab8d40bd67c1df67c97413d | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+2348135349979","message":"505367","events":["."]}])

[critical] (Job{v1-messaging} | ID: af9831044ab8d40bd67c1df67c97413d | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+2348135349979","message":"505367","events":["."]}]) has failed Exception: Error sending message: {"reference_id": null, "sub_resource": null, "status": {"updated_on": "2023-07-30T20:38:01.012054Z", "code": 501, "description": "Not authorized"}, "errors": [{"code": -30015, "description": "Invalid API Key."}], "signature_string": ""} in /usr/src/code/app/workers/messaging.php:71 `

malomz
30 Jul, 2023, 21:07

For some weird reason, I mixed up the Credential ID with API key

malomz
30 Jul, 2023, 21:08

Fixed that However, I am getting another error about not being able to parse argument

has failed InvalidArgumentException: Unable to parse DSN: sms://E3CE8D57

Drake
30 Jul, 2023, 21:13

What version of Appwrite?

malomz
30 Jul, 2023, 21:13

Version 1.3.8

Drake
30 Jul, 2023, 21:15

I don't think you used the right format. Take a look at the environment variables docs

malomz
30 Jul, 2023, 21:25

Followed this format sms://[CUSTOMER ID]:[API KEY]@telesign

Something like this sms://hdghsghsgh:jdhjhjhsj@telesign

malomz
30 Jul, 2023, 21:26

Samething as the doc

Drake
30 Jul, 2023, 21:28

Run docker compose exec appwrite vars and see if the variable is as expected

malomz
30 Jul, 2023, 21:29

Yes it is

Drake
30 Jul, 2023, 21:30

Because this error seems to indicate part is being cut off

malomz
30 Jul, 2023, 21:32

Yea, That's the weird thing.

Both the command you specified above and inspecting the environment on docker desktop shows the config as expected

Drake
30 Jul, 2023, 22:26

Want to DM me sms provider line from the output of the vars command?

malomz
30 Jul, 2023, 22:28

Sure Sending a DM now

Shiba
25 Nov, 2023, 07:49
TypeScript
Fatal error: Uncaught InvalidArgumentException: Unable to parse DSN: sms://yyyyyyyyyyyyyyyyyyyyyy:xxxxxxxxxxxxxxxxxxxxx==@telesign in /usr/src/code/vendor/utopia-php/dsn/src/DSN/DSN.php:59
Stack trace:
#0 /usr/src/code/src/Appwrite/Platform/Workers/Messaging.php(38): Utopia\DSN\DSN->__construct('sms://693F0F9A-...')
#1 /usr/src/code/src/Appwrite/Platform/Services/Workers.php(26): Appwrite\Platform\Workers\Messaging->__construct()
#2 /usr/src/code/src/Appwrite/Platform/Appwrite.php(14): Appwrite\Platform\Services\Workers->__construct()
#3 /usr/src/code/app/cli.php(199): Appwrite\Platform\Appwrite->__construct()
#4 {main}
  thrown in /usr/src/code/vendor/utopia-php/dsn/src/DSN/DSN.php on line 59
Shiba
25 Nov, 2023, 07:50

in the xxxxxxxx there is a "/" and after that the editor shows red text is this the problem ?

Shiba
25 Nov, 2023, 07:51
Drake
25 Nov, 2023, 20:51

Try to url encode the yyyyy value and the xxx value, including the =

Drake
25 Nov, 2023, 20:51

Also, in the future, please create a separate post instead of posting in an old thread

Shiba
27 Nov, 2023, 05:22

<:appwritebow:824077772192088064>

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