chatroom icon indicating copy to clipboard operation
chatroom copied to clipboard

Unexpected end of JSON input

Open dids-reyes opened this issue 4 years ago • 1 comments

I'm getting this error VM280:1 Uncaught (in promise) SyntaxError: Unexpected end of JSON input at Chatroom.js:1197 at h (Chatroom.js:520) at Generator._invoke (Chatroom.js:520) at Generator.t. [as next] (Chatroom.js:520) at l (Chatroom.js:1197) at a (Chatroom.js:1197)

Ask the API developer to include this in the headers:

"Access-Control-Allow-Origin" : "*", "Access-Control-Allow-Credentials" : true

https://stackoverflow.com/a/43547095/10428502

dids-reyes avatar Feb 28 '21 08:02 dids-reyes

I believe this typically means that the bot backend/Rasa backend is not sending a correct JSON/is not sending a JSON at all. Looks like the frontend/browser can not connect to your Rasa backend. Either it is a networking issue oder the backend is not running or does not have the right REST channel enabled.

hotzenklotz avatar Mar 01 '21 08:03 hotzenklotz