rasa: 403 client error when talking to the bot in command line

Rasa Core version: 0.11.3 (same bug in all 0.11 versions, no bug in 0.10.4)

Python version: 3.6

Operating system (windows, osx, …): Windows 7

Issue:

Hi,

After updating to Rasa Core 0.11, I am confronted with an error message in ALL my Rasa projects (including the Rasa Core Quickstart) when talking to the bot in the command line.

Steps:

  1. Reproduce the Quickstart by copying and pasting.
  2. Train the model (same command in Quickstart): python -m rasa_core.train -d domain.yml -s stories.md -o models/dialogue
  3. Talk to the bot (same command in Quickstart): python -m rasa_core.run -d models/dialogue

Result:

2018-09-12 09:24:34 INFO     root  - Rasa process starting
2018-09-12 09:24:34 WARNING  py.warnings  - C:\Users\a.lecigne\.virtualenvs\rasa-quickstart-kxlx6eU3\lib\site-packages\pykwalify\core.py:99: UnsafeLoaderWarning:
The default 'Loader' for 'load(stream)' without further arguments can be unsafe.
Use 'load(stream, Loader=ruamel.yaml.Loader)' explicitly if that is OK.
Alternatively include the following in your code:

  import warnings
  warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)

In most other cases you should consider using 'safe_load(stream)'
  data = yaml.load(stream)

2018-09-12 09:24:35 INFO     root  - Rasa Core server is up and running on http://localhost:5005
Bot loaded. Type a message and press enter (use '/stop' to exit):
/greet
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Users\a.lecigne\AppData\Local\Continuum\anaconda3\Lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Users\a.lecigne\AppData\Local\Continuum\anaconda3\Lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\a.lecigne\.virtualenvs\rasa-quickstart-kxlx6eU3\lib\site-packages\rasa_core\channels\console.py", line 110, in record_messages
    for response in bot_responses:
  File "C:\Users\a.lecigne\.virtualenvs\rasa-quickstart-kxlx6eU3\lib\site-packages\rasa_core\channels\console.py", line 69, in send_message_receive_stream
    r.raise_for_status()
  File "C:\Users\a.lecigne\.virtualenvs\rasa-quickstart-kxlx6eU3\lib\site-packages\requests\models.py", line 939, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://localhost:5005/webhooks/rest/webhook?stream=true&token=

The issue is gone when using the exact same project but downgrading to Rasa Core 0.10 and retraining the dialogue model.

Many thanks,

Anthony

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Update - the issue is solved when the http_proxy environment variable is unset. Thanks to ashukrishna100 on the Rasa community forums (link).

Oh very interesting, glad you found the solution 👍