Question
Why does the activity stream show a request as completed when the body of the stream states it failed? The end-user is getting a positive response and event GUID, but no event is created.
Environment
- All versions of xMatters
Answer
The "Failed" status appears if it is captured in the script code and not on the actual job execution. You will see a Cancelled status if the application was unable to execute in 60 seconds.
If you want to capture a Failed state, include the following snippet in the integration script:
var response = form.post(trigger);
// If not 2xx response, throw exception to fail the integration
if (response.statusCode >= 300) {
throw "Failed to complete integration server responded with status " + response.statusCode;
}
That should display a Failed status for the job.
Comments
0 commentsArticle is closed for comments.