Closed bramley-stride closed 3 years ago
Duplicate of https://bugfocus.zendesk.com/agent/tickets/30398. Still in research but definitely server side issue; not the library. Reported by iOS team with the same endpoint.
Looks like the issue is with Nginx which is caching the requests and responds on the poll requests with the last result.
First of all, the caching should be disabled in the nginx configuration; BP support is working with TTec on this.
Second, we might change the library to overcome caching, but this is long shot and will take time.
Per latest update, the Nginx configuration has been corrected which should have fixed the issue. Please confirm and close.
No response, considering fixed, closing.
The new endpoint is no longer timing out, but is sending Android the same initial message over 70 times per second.
{"events":[{"channel":"web","event":"chat_session_message","msg":"If you know your case number please enter it now. You may also reply New to open a new case.","msg_id":"0","party_id":"55362A42-59E2-440D-BAEA-1DA0A4C3AEE3","timestamp":"1620641128"}]}
These values are always the same, even the timestamp. Therefore I suppose the problem is in the Android library?
Sample logs:
It looks like there's a pretty tight loop here where
runObservation()
calls the API, gets the result, then callsrunObservation()
again:The constant updating even breaks the chatkit library/recyclerview, causing these two messages to draw on top of each other: