SDK API error with purecloud-platform-client-v2

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 :

In which cases we can have this kind of error please ?

Here is the portion of code I think that causes the error:

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?

Hello,

No I have updated the SDK to version 11. I will come back to you if I find the error again.

Thanks.

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:

Thank you for help.

Best regards,
Malick

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.

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

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.