I am accessing Salesforce Live Agent through REST API. I can create session and send messages from the client. for getting the messages from the server I set timer in client, and each 1.5 seconds I send the request "Messages" to server.

while there is no message from the server, I get the error "Duplicate Message Observer" with statusCode 409.

Why is it happens? Is there any way to avoid the errors?



I believe this occurs when you have more than 1 concurrent message request to Salesforce at once. It is a long-polling mechanism, so you must wait until you receive a response before starting a new message request.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.