Malick | 2017-10-27 08:09:44 UTC | #1
Hello guys,
I have a problem with the SDK purecloud-platform-client-v2 version 10.0.0 : Sometimes it cause an error (exception) which not catchable without any indication in my programm. Here's an example : <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/72a777f2ef80ccf55e69c253aad9e8b8c49fc7a6.png" width="690" height="164">
In which cases we can have this kind of error please ?
Here is the portion of code I think that causes the error: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/bb95c7e23721eecb84fbd14f056fc23295a68a4a.png" width="690" height="193">
tim.smith | 2017-10-31 14:52:16 UTC | #2
Hm, that error can happen if superagent doesn't provide a response object. I'm not sure what scenario would cause that, however. Are you able to reproduce this error with any regularity?
Malick | 2017-11-01 12:42:36 UTC | #3
Hello,
No I have updated the SDK to version 11. I will come back to you if I find the error again.
Thanks.
Malick | 2017-11-16 14:31:51 UTC | #4
Hello,
I have again the non catchable error that hit all and stopped the program. I don't have any indication about the line that caused the error in my code. Here's the responsible line in the SDK: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/6d13996e0fd88acc06bea9e3fe5c6a80094ccf01.png" width="690" height="342">
Thank you for help.
Best regards, Malick
tim.smith | 2017-11-16 15:17:28 UTC | #5
I've added some additional tracing and error handling there in v13.0.0. I still don't know how the response object could be undefined, but if you run into this issue again, the error object should be traced out in your console as well as being returned in the error property of the response. Definitely let me know what the error is if you encounter this again; I'm still unable to reproduce this.
Malick | 2017-11-16 15:43:22 UTC | #6
Ok ... I have updated the SDK to the last version. I'll let you know when the error fired again. Thank you very much.
Regards, Malick
system | 2017-12-17 15:43:51 UTC | #7
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: 2019