function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter SchmizPeter Schmiz 

Live Agent REST API - ChasitorInit - 503 error

Hi,

I'm trying to use the REST API of Live Agent.
At the moment I'm only using different REST API test tools to test the needed
test.

The first step (getting session ID) is working, but right after when I'm trying to initiate
a chat either I get error 400 (bad request, probably because I played around with the headers)
or 503 - Service not available.

I'm stuck, because tried almost everything I could find, and nothing works, can't
initiate a chat.

Anyone had the same experience or anyone has the solution?

Thanks,
Peter
masrajeshmasrajesh
Hi Peter,

I am almost in the same situation now, I am trying to initiate a Chasitor session but getting 503 - Service Unavailable error. Did you manage to resolve the issue ?


Status: 503: Service Unavailable

X-Liveagent-Api-Version: 34X-Liveagent-Affinity: 2cca1fa0
X-Liveagent-Session-Key: 13687199-aa07-4abd-ae7a-8e22f082c00c!1468506627911!j1KGdm3AOBNsLmYxBIqgTkAvAvU=
X-Liveagent-Sequence: 1
Content-Length: 655
Source message
POST /chat/rest/Chasitor/ChasitorInit
HTTP/1.1 HOST: d.la1-c2cs-lon.salesforceliveagent.com x-liveagent-api-version: 34 x-liveagent-affinity: 2cca1fa0 x-liveagent-session-key: 13687199-aa07-4abd-ae7a-8e22f082c00c!1468506627911!j1KGdm3AOBNsLmYxBIqgTkAvAvU= x-liveagent-sequence: 1 content-length: 655 { "organizationId": "XXXXXXXX", "deploymentId": "XXXXXXXX", "buttonId": "573260000004CKX", "sessionId": "13687199-aa07-4abd-ae7a-8e22f082c00c", "userAgent": "Lynx/2.8.8", "language": "en-US", "screenResolution": "1900x1080", "visitorName": "Frank Underwood", "prechatDetails": [ { "label": "E-mail Address", "value": "jon@example.com", "transcriptFields": [ "c__EmailAddress" ], "displayToAgent": true } ], "prechatEntities": [], "receiveQueueUpdates": true, "isPost": true }