Hi @Sankarbala Manoharan • Thank you for reaching out.
As you have mentioned, the error occurred when the endpoint was called concurrently, I suspect that the problem is either due to throttling or if you are making frequent patch calls, your client app is not waiting enough for the replication to complete.
In this case, you can implement an exponential back-off approach, i.e., On HTTP error code 4xx, your client:
- Waits 1 second, retry the request
- If it still failed wait for 2 seconds, retry the request
- If it still failed wait for 4 seconds, retry the request
- If it still failed wait for 8 seconds, retry the request
- If it still failed wait for 16 seconds, retry the request
- At this point, you should not be getting the error.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.