"unauthorized" error when sending SMS message
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