"unauthorized" error when sending SMS message

John L 21 Reputation points
2024-05-08T19:39:21.8366667+00:00

I have a Canada number registered for sending SMS messages (regulatory doc approved). It has been working but no longer. Same Javascript program (basically just copy of MS-provided sample code), same access key etc.

"Try SMS" in portal doesn't work either.

Error:

Uncaught Error RestError: {"error":{"code":"Unauthorized","message":""}} at RestError (\node_modules@azure\core-http\dist\index.js:2390:28) at handleErrorResponse (\node_modules@azure\core-http\dist\index.js:3274:17) at <anonymous> (\node_modules@azure\core-http\dist\index.js:3210:18) at processTicksAndRejections (internal/process/task_queues:95:5) index.js:2390 Process exited with code 1

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
740 questions
{count} votes