Hey,
We are currently integrating OpenMessaging in Genesys with our internal systems and seeing some strange behaviour on the .NET SDK. (v184.2.0)
When we attempt to fetch message details using GetConversationsMessageDetailsAsync
for a message that was just created using PostConversationsMessagesInboundOpenAsync
we are often seeing a 404 Not Found.
We have had to add delays to the second call which then seems to return responses correctly.
The code for this sequence looks something like this:
public async Task<string> CreateConversation(OpenNormalizedMessage openNormalizedMessage){
// POST /api/v2/conversations/messages/inbound/open
OpenNormalizedMessage result = await ConversationsApi.PostConversationsMessagesInboundOpenAsync(openNormalizedMessage);
// The following call often returns a 404.
// We have had to add a delay before fetching
// await Task.Delay(1000);
// GET /api/v2/conversations/messages/{messageId}/details
MessageData messageData = await ConversationsApi.GetConversationsMessageDetailsAsync(result.Id);
return messageData.ConversationId;
}
Can you please help us understand why the API would return a 404 for something that was just generated.
Thank you