gvandegrift | 2016-12-01 21:31:00 UTC | #1
We have a new service (running in AWS) that is pretty straightforward. It just calls a handful of APIs repeatedly to build a queue "stress" dashboard. Fairly routinely, we see failures in the API (we're accessing it via the JavaScript SDK from node.js). Among the failures are:
- Gateway Timeout
- Internal Server Error
- API timeout (timing out based on what is passed into PureCloudSession())
These seem to happen at no particular time of day (middle of the night... middle of the day). They sometimes just come once or other times in quick succession. This morning, we had nothing until 11am CST. Since that time, we've had dozens. I checked status.mypurecloud.com to see if there are any associated outages, but I'm not seeing anything.
Any thoughts on what we're up against? Is there any other sort of platform status indicator we can check during these times?
tim.smith | 2016-12-01 22:57:14 UTC | #2
gvandegrift, post:1, topic:693
Any thoughts on what we're up against?
If you open a support ticket and provide the correlation IDs from the failed responses, they can investigate the issues you're seeing.
gvandegrift, post:1, topic:693
Is there any other sort of platform status indicator we can check during these times?
Yep. http://status.mypurecloud.com/
KevinGlinski | 2016-12-01 23:20:03 UTC | #3
- API timeout - the sdk has a configurable timeout, it doesn't work in the browser version but should in node. It is 2s by default which is high if you are in aws. Which region are you running in an which region are you connecting to?
gvandegrift | 2016-12-02 14:26:36 UTC | #4
Thanks for the quick replies. We're running in us-west-2. I assume we're going to your North American region, but I don't really see a way to configure that via the JavaScript API (maybe I'm missing something obvious?). We have our timeout set to 10s.
I'll need to work out a way to get the correlation IDs in future failures. It doesn't appear to be in the exception thrown by the SDK.
gvandegrift | 2016-12-02 20:50:50 UTC | #5
Ah... I see there is an "environment" field on the session object that allows you to change regions. We're not using it, so I assume it's going to NA.
tim.smith | 2016-12-02 20:51:53 UTC | #6
gvandegrift, post:5, topic:693
so I assume it's going to NA
Yes, it defaults to mypurecloud.com if you don't specify an alternate domain (e.g. mypurecloud.jp).
system | 2017-08-28 19:29:13 UTC | #7
This post was migrated from the old Developer Forum.
ref: 693