Rasa: Fatal error - engineio.server - https://mysite.com is not an accepted origin. after upgrade

Created on 8 Aug 2019  路  17Comments  路  Source: RasaHQ/rasa

Rasa version:
Rasa 1.2.2

Rasa X version (if used & relevant):

Python version:
Python 3.6.8

Operating system (windows, osx, ...):
ubuntu server

Issue:

After run
pip3 install rasa --upgrade

I started to get the message:
engineio.server - https://mysite.com is not an accepted origin.

Now my webchat is broken and I'm stuck !!!

It seems to be related to cors but I tried the command above and still it didn't work.

rasa run --m models/dialogue --enable-api --debug --endpoints endpoints.yml --credentials credentials.yml --cors '*'

Thanks !

Error (including full traceback):

2019-08-08 06:37:12 DEBUG    pykwalify.compat  - Using yaml library: /usr/local/lib/python3.6/dist-packages/ruamel/yaml/__init__.py
2019-08-08 06:37:19 INFO     engineio.server  - https://myip.com is not an accepted origin.


Command or request that led to error:

        rasa run --m models/dialogue --enable-api --debug --endpoints endpoints.yml --credentials credentials.yml --cors '*'

Content of configuration file (config.yml) (if relevant):


Content of domain file (domain.yml) (if relevant):


more-details-needed type

Most helpful comment

I have solved the issues. Because the version of python-engineio is 3.9.2 in ubuntu, it will work fine after I downgraded python-engineio from 3.9.2 to 3.8.1.

All 17 comments

Thanks for the issue, @wochinge will get back to you about it soon!

You may find help in the docs and the forum, too 馃

@EmannuelRoque On which machine is your Rasa server running and on which machine is the socketio input running?

I have the following structure:

  • webchat (hosted on site)
  • nginx proxy server (to generate https)
  • server running core (proxy redirects from internal board)
  • server running actions (internal card)

The chrome console shows this message:

Access to XMLHttpRequest at 'https://botgi/socket.io/?EIO=3&transport=polling&t=MnnxFS0' from origin 'https://mysite.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Error: xhr poll error
at c.i.onError (webchat-5.js:6)
at l. (webchat-5.js:33)
at l.r.emit (webchat-5.js:6)
at l.onError (webchat-5.js:33)
at webchat-5.js:33

Work around:
pip3 uninstall python-engineio
pip3 install python-socketio==4.2.0

I had same issues in ubuntu 18.0.4. It worked fine in windows platform.
My environment is as follows:
Rasa version: Rasa 1.2.1
Rasa X version (if used & relevant):
Python version: Python 3.6.8
Operating system (windows, osx, ...): ubuntu server 18.0.4
Chat: webchat
I started rasa in ubuntu 18.0.4 to get the message:
engineio.server - http://jw.ngrok2.xiaomiqiu..cn is not an accepted origin.(http://jw.ngrok2.xiaomiqiu..cn is my ngrok tunnel for http://localhost:80).

And it will has same issues when I use the http://localhost, to get the message:
engineio.server - http://localhost is not an accepted origin.

I have solved the issues. Because the version of python-engineio is 3.9.2 in ubuntu, it will work fine after I downgraded python-engineio from 3.9.2 to 3.8.1.

@jwjuven Did you get any insights why python-engineio does not support this?

No Idea why is this happening, but I got the same issue..

Just updated to Rasa 1.2.3 and this started to happen to me too. Downgrading python-engineio to 3.8.1 worked for me.

We will release a new version 1.2.4 which should fix this. Could you please check if that resolves your issue?
The PR for that is https://github.com/RasaHQ/rasa/pulls?q=is%3Apr+is%3Aclosed

We will release a new version 1.2.4 which should fix this. Could you please check if that resolves your issue?
The PR for that is https://github.com/RasaHQ/rasa/pulls?q=is%3Apr+is%3Aclosed

Wonderful news! Any estimation about when this new release is coming out?

Already released https://pypi.org/project/rasa/1.2.4/ 馃帀

This is what I got when i installed the latest rasa = 1.2.4 , please help me

engine

This issue has been automatically closed because there has been no response to our request for more information from the original author. Without this, we don't have enough information to help you. Please comment below with the requested information if you still need help.

Sorry for the late response. Still not fixed in Rasa 1.2.5. I had to downgrade python-engineio to 3.8.1 again.

Using docker image: rasa/rasa:1.2.5-full

On Chrome:
image

Docker logs:
image

After downgrading python-engineio it works fine. In this setup I'm not using a proxy, it's all on m localhost (running on docker).

@akelad Not entirely sure from the message of you and Tom in the PR, but did we have time to test it with 4.3.1?

Yes I tested it with that and the python-engineio method that鈥檚 pinned and it worked fine

Was this page helpful?
0 / 5 - 0 ratings