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
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...