Common errors encountered while configuring Web SDK


(swathi vadlamani) #1
  1. User identity is not specified in index.html: User sees missing/Invalid jwt.sub() when users email id is not given in index.html file.
    50%20AM
    Provide users identity as shown below in index.html
    botOptions.userIdentity = ‘x@gmail.com’;// Provide users email id here.

  2. Wrong ClientID is given in index.html: User sees the following error when either wrong clientID or no clientID is given.
    00%20AM
    Provide correct ClientID you get from Bot – Apps and Agents option
    botOptions.clientId = “{clientID}”; // secure client-id

  3. Wrong clientSecret is given in index.html: User sees the following error when either wrong clientSecret or no clientSecret is given.
    06%20PM
    Provide correct clientSecret you get from Bot – Apps and Agents option
    “clientSecret”: "{clientSecret}” //provide clientSecret here

  4. Wrong url is given in index.html: When wrong url is given, users see a 404 error.
    04%20PM
    Double check the URL and provide it correctly. URL changes depending on you are hosting the bot on your own web sdk or on Kore’s web sdk. If its Kore web sdk, then the URL is http://demo.kore.net:3000/users/sts. If you are hosting on your inhouse web sdk, then provide the respective URL.