How can my client retry a reply after a timeout?
The request to send a conversation reply timed out before my client received a response.
The request to send a conversation reply timed out before my client received a response.
Create a UUID for request_id before the first attempt and keep it with the outgoing text. Retry with the same key, conversation ID, UUID and message text. A 409 response signals that the UUID was reused with different content. Check the original message before sending another reply. If you receive a 429 response, wait before retrying.