I have a simple service that we use to hydrate campaigns with contacts from disparate other databases/systems. Intermittently we will get errors from the Javascript SDK indicating that we were unable to complete certain API calls. Usually this isn't a huge deal since the service runs every ~5 minutes but the concerning thing is that we don't seem to be getting an error message from the failures. In testing using the SDK I was able to generate generic errors when I would try to add to a contact list without required columns or if the campaign doesn't exist, etc, but the production errors we are seeing must be of a different type. Are you aware of anything that can cause errors in the API calls without returning any indication of what was wrong?
Currently we are using what I just found out is the older version of the SDK, so I will be updating to the 'purecloud-platform-client-v2' version, I'm not sure if you anticipate that having any positive impact but I did notice that it returns proper error objects on error now.
Generally the errors are regarding any one of the following calls (but again there has been no discernible pattern): getCampaignsCampaignIdProgress, getCampaignWithId, putCampaignsCampaignId. I know that the data being sent to the call is good because I log it out when I have an error and have been instantly making the calls and they always work on subsequent tries.
Any help or guidance would be great! Again, I am planning and working on upgrading the API and am hopeful that will help.
If you can get more information about the error(s) you're seeing, I can take a look. If you enable debug tracing on the SDK, it will log information about the request and response to the console, including the response code, response body, and correlation ID header (the most important piece of data).
Tim, we were able to get the trace turned on and it turns out the calls were timing out which is why we saw no error. We bumped up the timeout and no longer have the same issues.
I have a new issue and I'm not sure if I should just make a new thread but essentially starting tuesday morning around 10:15-10:30 we had a campaign give us the error: 'An attempt was made to update a Campaign in an invalid way. Details: A campaign cannot have other fields changed in the same update as a status change'. This occurred when we were attempting to turn a campaign on via the API using update campaign. This code had been unchanged for months before the error but this has since happened to two different campaigns and each time the campaign gets in a state where we cannot turn it on via the UI either. I believe the correlation id for the error is '6fa9595e-c563-4d51-8c54-5bbbfb2ccf63'.
Additionally I went to the developer portal to try some API calls to make sure nothing had changed and I am unable to get the PUT call to update the campaign to turn it on to work either, it gives the same error.