Illegal Invocation exception with web client


#1

Hi,

I’m getting Illegal Invocation exception with web client. Using https://github.com/jovotech/jovo-starter-web-chatwidget-react as chat widget. Same error is coming with this example too: https://github.com/jovotech/jovo-framework/blob/v4/latest/clients/client-web/demo/index.html

Below is the log:

 >>>>> Request - 2022-01-14T11:07:07.531Z 
{
  "version": "4.0",
  "platform": "web",
  "id": "a7977e92-0e8e-48dc-b599-b182c5ccde25",
  "timestamp": "2022-01-14T11:07:07.452Z",
  "timeZone": "Asia/Calcutta",
  "locale": "en",
  "input": {
    "type": "LAUNCH"
  },
  "context": {
    "device": {
      "id": "45aec6ea-fbc2-484f-8413-3b06e586b2fa",
      "capabilities": [
        "SCREEN",
        "AUDIO"
      ]
    },
    "session": {
      "id": "c323dd19-cc03-41da-b787-06bd6d2edc61",
      "data": {},
      "state": [],
      "isNew": true,
      "updatedAt": "2022-01-14T11:06:57.459Z"
    },
    "user": {
      "id": "d4b282c8-c508-4b11-a02d-55db5b2ea96a",
      "data": {}
    }
  }
}


 <<<<< Response - 2022-01-14T11:07:07.556Z  ✔️ 26ms
{
  "version": "4.0.0",
  "platform": "web",
  "output": [
    {
      "message": "start_0say_1",
      "listen": false
    },
    {
      "message": "How can I help you?",
      "listen": true,
      "quickReplies": [
        "Exchange rate",
        "Open Account"
      ]
    }
  ],
  "context": {
    "request": {},
    "session": {
      "end": false,
      "data": {},
      "id": "c323dd19-cc03-41da-b787-06bd6d2edc61"
    },
    "user": {
      "data": {}
    }
  }
}
ERROR [JovoLogger.error]  
 TypeError  Illegal invocation
error stack:
• stream_base_commons:142 writevGeneric
    node:internal\stream_base_commons:142:26

• node:net:793 Socket._writeGeneric
    node:net:793:11

• node:net:802 Socket._writev
    node:net:802:8

• writable:406 doWrite
    node:internal\streams\writable:406:12

• writable:561 clearBuffer
    node:internal\streams\writable:561:5

• writable:348 Writable.uncork
    node:internal\streams\writable:348:7

• node:_http_outgoing:889 end
    node:_http_outgoing:889:17

• response.js:221 send
    node_modules\express\lib\response.js:221:10

• response.js:267 json
    node_modules\express\lib\response.js:267:15

• ExpressJs.ts:53 <anonymous>
    node_modules\@jovotech\server-express\src\ExpressJs.ts:53:18

Am I missing anything? Thanks


#2

Hi @manikanta,

Thank you. This issue should be fixed with the next release. We’ll keep you posted!


#3

Thanks @jan. For now I removed JovoDebugger from plugin entries and it worked.


#4

Hey @manikanta

we published the fix yesterday.


#5

Thank you very much