Error handling when using Genesys global function

Hello I have the following 2 error use cases and I wanted to know what is the best way to handle this.

  1. Error getting script to genesys.min.js (for some reason the server serving the script is down)
  2. Error on starting web messaging. (for some reason the server is down/message deployment was deleted)

I wanted to handle above cases and show a customized message. But upon checking it is not throwing any error. It is just logging a console.

Updates on this

  1. I have fixed this by listening to error event when loading the js file
  2. I am not sure if this is a bug on the script side, but when I tried to input a deploymentId that does not exist it shows the following error which I feel should be more related to 'deployment id does not exist' and then throw an exception error.

loadJSON failed with status code: 403

Thanks, we'll revisit your suggestion.

Hi Angelo,

So that means there is no way we can handle errors using the Genesys global function right now am I right?
Sample use cases:

  1. Deployment ID does not exist
  2. After connecting successfully and starting a conversation, for some reason there is an error calling Messaging Service Commands

Thanks!

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