
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.

Managed? Who's managing?
What do the logs in the messaging container say?

I meant managed locally on Docker

How do I check the logs?


` [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 `

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

Fixed that However, I am getting another error about not being able to parse argument
has failed InvalidArgumentException: Unable to parse DSN: sms://E3CE8D57

What version of Appwrite?

Version 1.3.8

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

Followed this format
sms://[CUSTOMER ID]:[API KEY]@telesign
Something like this
sms://hdghsghsgh:jdhjhjhsj@telesign

Samething as the doc

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

Yes it is

Because this error seems to indicate part is being cut off

Yea, That's the weird thing.
Both the command you specified above and inspecting the environment on docker desktop shows the config as expected

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

Sure Sending a DM now

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

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


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

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

<:appwritebow:824077772192088064>
Recommended threads
- Expo-web session issue
In web I created a session using oauth. I run the app logged in but closed the terminal and ran again opened the app(I have now 2 running app in different...
- Appwrite Sites: Error on creating and u...
I'm getting errors on appwrite hosting nextjs application. It shows as default selected 1 VCPU, as I suppose to see only for 0.5VCPU. Also When adding additi...
- How do load test in appwrite?
I am new to testing and stuff and I am unsure of how to get started on load testing with appwrite. I am using SvelteKit as my framework and appwrite for everyth...
