Malick | 2017-09-15 13:45:30 UTC | #1
Hello,
Please, what does mean a ZERO statusCode in { statusCode: 0, headers: undefined, body: undefined } ? Sometimes, I have this value in the catch bloc while calling getCallsCllId or getConversationsConversationIdEvaluationsEvaluationId. Though second API calls with the same ids give the expected response.
Thanks and regards, Malick
tim.smith | 2017-09-15 16:02:57 UTC | #2
Can you enable debug tracing to see what kind of responses you're getting?
KevinGlinski | 2017-09-15 15:58:17 UTC | #3
You might be hitting a timeout from within the sdk itself. So the xhr times out before getting a response from purecloud.
Malick | 2017-09-18 15:45:19 UTC | #4
Yes, I can... However I have surprisingly this kind of error : <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/4d9fef81efb5e5b2e3a6dc53e0b314bf5b7602a9.png" width="452" height="228"> And when I check the body of the variable with console.log(JSON.stringify(pureCloudSession, null, 4)), I have this: { "options": { "environment": "mypurecloud.ie", "strategy": "client-credentials", "clientId": "**********************************", "clientSecret": "************************************************", "timeout": 20000, "storageKey": "pureCloudSessionKey" }, "apiUrl": "https://api.mypurecloud.ie", "authUrl": "https://login.mypurecloud.ie" }
tim.smith | 2017-09-19 18:27:29 UTC | #5
Can you provide a code sample? That doesn't look right. Documentation on how to enable debug logging is at the bottom of the page here: https://developer.mypurecloud.com/api/rest/client-libraries/javascript/
tim.smith | 2017-09-19 21:17:27 UTC | #6
Actually, it looks like you're using the pre-release SDK that was deprecated in July. Try using the new SDK as the pre-release SDK is no longer supported. https://developer.mypurecloud.com/forum/t/javascript-sdk-stable-release-1-0-0/1593/2
Malick | 2017-09-19 21:15:24 UTC | #7
Thank you. Tomorrow, I will try the new one and let you know. Thanks again ...
Malick | 2017-09-20 15:24:51 UTC | #8
Tim,
Is the purecloud_api_sdk_javascript package concerned by the deprecation ? I am using this one in my devs. Thanks
tim.smith | 2017-09-20 15:28:11 UTC | #9
Yes, that has been deprecated and will not receive any updates (and hasn't been updated in 6+ months). You need to use the package in the announcement I linked.
system | 2017-10-21 15:28:59 UTC | #10
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 1799