How to fix "Azure.RequestFailedException: Requested message could not be located.

Kunam, Umakanth 40 Reputation points
2024-06-20T14:18:50.68+00:00

"Azure.RequestFailedException: Requested message could not be located. Couldn't find a record with the messageID: 404 (Not Found)\r\nErrorCode: MessageNotFound

I'm unable to find Triage of MessageId for the first time i'm getting above error, in second retry it is sending correctly, i just wanted to what causing this issue , i have reviewed the documentation no clues :

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

Accepted answer
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2024-07-09T05:59:07.77+00:00

    Antolovich, Junli , Kunam, Umakanth

    Update-

    After clarification with team its came out to be a known issue we are currently having.

    Currently, we don't have an immediate fix for this, we're working on a longer term fix.

    Its recommended to not use the automatic polling (using WaitUntil.Completed) for production ready workloads. Instead switch to using manual polling as shown in the example here: Quickstart - Manually poll for email status when sending email - An Azure Communication Services Quickstart | Microsoft Learn

     

    We will also update quickstart with this recommendation as it doesn't currently mention this.

    Hope this helps let us know.


1 additional answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2024-06-24T14:41:18.6366667+00:00

    @Kunam, Umakanth Thanks for reply! Looking at logs for that request. The send request was processed in the Central US region. The first request to get the status landed in East US. The get status request came in before the data could be replicated to the other region.

    This can happen if the request for the status comes in to quickly as our service runs on multiple machines over different regions.

    Let us know if you have further query.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.