question

jmilleriec avatar image
0 Votes"
jmilleriec asked rahatur answered

Azure Communications Service SMS SDK Issue

All of a sudden I've just started getting this error when i call the SMS communication service with this:

SmsSendResult sendResult = await client.SendAsync(object);

Haven't used it in a week or so, just updated the Nuget package which didn't appear to do anything.

{"Service request failed.\r\nStatus: 401 (Unauthorized)\r\n\r\nContent:\r\n{\"error\":{\"code\":\"Denied\",\"message\":\"Request was out of the allowed time difference.\"}}\r\n\r\nHeaders:\r\nTransfer-Encoding: chunked\r\nRequest-Context: REDACTED\r\nMS-CV: REDACTED\r\nX-Processing-Time: REDACTED\r\nX-Cache: REDACTED\r\nX-Azure-Ref: REDACTED\r\nDate: Fri, 03 Sep 2021 19:35:14 GMT\r\nContent-Type: application/json\r\n"}

I'm assuming something is going on with the service at this point.

Any insights are appreciated.

Thanks,
Jim

azure-communication-services
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @jmilleriec,

Apologies for the delay in response. I am checking internally with the engineering team to see what is causing this issues. We will update this thread as soon as we hear back form them.

Thanks,
Grace

0 Votes 0 ·

The data showed up under the null event hub source, instead of the one I set up, the data appears to be flowing in.

I do have a question about how I might be able to do a group by, I can't find any documentation about that

Thanks,
Jim

0 Votes 0 ·
Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT answered

Thank you so much for the update @jmilleriec . Glad the data is now showing up.

Can you please provide the below details so we can provide the right solution for you. You can send this information to us offline by emailing usat azcommunity@microsoft.com with the subject "ATTN: Grace" :

  1. Your ACS resource endpoint URL which you're using to send SMS

  2. Are you still getting 401 error or different error when sending SMS?

  3. Are you facing issue receiving SMS event to their Event Hub resource or some other issue?


Some helpful link which shows how to setup EventHub and receive event from Event Hub:
Event Hubs - Capture streaming events using Azure portal - Azure Event Hubs | Microsoft Docs
Send or receive events from Azure Event Hubs using .NET (latest) - Azure Event Hubs | Microsoft Docs


We hope to hear back from you soon.

Best,
Grace

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

rahatur avatar image
0 Votes"
rahatur answered

Getting the same "Request was out of the allowed time difference" 401 error for the Communication Service resource

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.