#phone authentication with Telesign

24 messages · Page 1 of 1 (latest)

tardy locust
#

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.

clever plover
tardy locust
#

I meant managed locally on Docker

#

How do I check the logs?

tardy locust
#

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

tardy locust
#

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

tardy locust
#

Version 1.3.8

clever plover
tardy locust
#

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

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

#

Samething as the doc

clever plover
tardy locust
#

Yes it is

clever plover
tardy locust
#

Yea, That's the weird thing.

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

clever plover
tardy locust
#

Sure
Sending a DM now

lean gale
#
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 ?

clever plover
# lean gale

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

clever plover