I am using Freshchat API token (https://personal-70177.freshchat.com/) for creating my custom channel integration. In general everything worked well, but now…
It is important that this error only with some conversions. What is this error? Is this a bug or a feature?)
it is also interesting that I have a webhook configured and it sends me events with this conversation ID, but I can not get messages by this conversation ID.
Currently, there is a delay in fetching the conversation messages since it comes from a read replica.
If you try fetching the same conversation later (after about 20 mins), you will not receive this error.
Thank you for reply, now I understand the reason. But this conversation still not available (more than 3 hours passed). How I can working with this now (get messages from conversation)? Only via webhooks?
Yes, it is not in the docs, also in this docs written that GET /conversations/{conversation_id} return the conversation object with messages, but this is not true.
And the only way now as I understand it is webhook.
The fetch conversation API fetches messages from a Read-replica DB.
It is possible that there is a lag in the replica DB and the conversation ID you are fetching is still not updated in it.