scalableminds / chatroom

React-based Chatroom Component for Rasa Stack
https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/demo.html
GNU Affero General Public License v3.0
307 stars 208 forks source link

Unexpected end of JSON input #153

Open dids-reyes opened 3 years ago

dids-reyes commented 3 years ago

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

hotzenklotz commented 3 years ago

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.