I have upgraded my RASA:
Previous the following packages were installed with
pip install -r requirements_dev.txt :
rasa==1.4.0 spacy==2.1.8 rasa-sdk==1.4.0 numpy==1.16.0 python-socketio==4.3.1 python-engineio==3.9.3 livereload pytest==5.2.2 cx_Oracle==7.2.2 python-dateutil==2.8.0 multidict==4.6.1
To start the chatbot I did this:
rasa run --endpoints endpoints.yml --credentials credentials.yml
rasa run actions --actions actions
After all these steps the chatbot started running in my browser. Everything was working fine. However, I wanted to use the latest RASA version. Therefore I did an upgrade. I installed the following packages:
rasa==1.6.0 spacy==2.1.8 rasa-sdk==1.6.0 numpy==1.16.0 python-socketio==4.3.1 python-engineio==3.9.3 livereload pytest==5.2.2 cx_Oracle==7.2.2 python-dateutil==2.8.0 multidict==4.6.1 sanic==19.9.0
The rest of the code was kept the same. After I do
rasa train I run terminal 1 - terminal 4 (see commands above). Now I am facing the following problems:
The browser window keeps empty The bot is not starting in the browser (Chrome & Firefox). With
ctrl+shift+i in chrome I can see the following problems: The bot is getting blocked!
The error says:
Access to XMLHttpRequest at 'http://localhost:5005/socket.io/?EIO=3&transport=polling&t=M-5c3RW' from origin 'http://127.0.0.1:35729' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is my endpoints.yml:
action_endpoint: url: http://localhost:5055/webhook
This is my credentials.yml:
socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: true rest: # # you don't need to provide anything here - this channel doesn't # # require any credentials rasa: url: "http://localhost:5002/api"
You have any idea how to solve it?