How can I avoid the "No response for ECC message request with sysid=xxx after waiting for 30 seconds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 09:40 PM
Hello ServiceNow Community,
We are currently running San Diego.
and I have the following section of code in a Registration workflow
var request = new sn_ws.RESTMessageV2();
request.setHttpTimeout(360000000);
request.setEccParameter('skip_sensor', true);
request.setEndpoint(_endPoint);
request.setHttpMethod('post');
if (payload) {
payload = this.ESCAPE_CHARACTER(payload);
request.setRequestBody(payload);
}
request.setMIDServer(this.midServer);
request.setRequestHeader('Accept', 'application/json');
request.setRequestHeader('Content-Type', 'application/json');
request.setRequestHeader('Authorization', authorizationString);
var response = request.executeAsync();
response.waitForResponse(360);
In addition to the response.waitForResponse(360); line above, I have also added the System Property glide.rest.outbound.ecc_response.timeout with an integer value of 360 and added glide.http.outbound.max_timeout.enabled with a value false.
But I am still receiving the error "No response for ECC message request with sysid=xxx after waiting for 30 seconds in ECC Queue".
Any idea why this REST API call is still timing out after only 30 seconds (instead of the 6 minutes I would expect based on the above settings)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2022 11:09 PM
Hi, setEccTopic() may offer a solution.
The article also covers why extended response times are very very BAD.
Personally, I would escalate the target platform as a business risk.
