# HTTP error after user message

**URL:** <https://forum.rasa.com/t/http-error-after-user-message/949>\
**Category:** Rasa Open Source\
**Created:** [September 7, 2018, 4:17pm UTC](https://forum.rasa.com/t/http-error-after-user-message/949 "2018-09-07T16:17:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 7, 2018, 4:17pm UTC](https://forum.rasa.com/t/http-error-after-user-message/949/1 "2018-09-07T16:17:32Z")

</div>

Hi,

I am encountering an error after migrating a [WeatherBot](https://github.com/JustinaPetr/Weatherbot_Tutorial)-inspired chatbot from Rasa Core 0.10 / Rasa NLU 0.12 to their corresponding, latest versions.

# The error

I am confronted to the following error when I talk to the bot in the command line:

```
Bot loaded. Type a message and press enter (use '/stop' to exit):
hey
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\bot-engine-a3KaQZ9S\lib\site-packages\rasa_core\channels\console.py", line 110, in record_messages
    for response in bot_responses:
  File "C:\Users\a.lecigne\.virtualenvs\bot-engine-a3KaQZ9S\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\bot-engine-a3KaQZ9S\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=

```

# Details

I applied the necessary modifications according to the migration guide:

- I included an `endpoints.yml` file that looks like this:

- The command to run the bot in command line looks like this:

- In parralel, I started the action server by using the command:

Here are my `actions.py` and `domain.yml` files for reference : [here](https://gist.github.com/alecigne/b067ad2da9a771edf0fea37e90563e9a).

I’d be very grateful for any help with this problem.

Thank you very much,

Anthony

---

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 10, 2018, 8:47am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/2 "2018-09-10T08:47:34Z")

</div>

Sorry to bump my thread, but any advice on this? Even the Rasa Core quickstart project doesn’t work anymore with Rasa 0.11.2. Thanks

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 10, 2018, 8:50am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/3 "2018-09-10T08:50:58Z")

</div>

What exactly doesn’t work with the quickstart project?

---

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 10, 2018, 8:52am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/4 "2018-09-10T08:52:21Z")

</div>

Thank you for your answer. I have exactly the same error with the quickstart project:

```
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://localhost:5005/webhooks/rest/webhook?stream=true&token=

```

I don’t even plug the NLU part - the error appears when running the `python -m rasa_core.run -d models/dialogue` command.

I can confirm that I don’t have this problem with Rasa 0.10.4 using the very same quickstart project.

---

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 11, 2018, 7:46am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/5 "2018-09-11T07:46:40Z")

</div>

Unsurprisingly, still the same error using a simple script:

```
from rasa_core import run
from rasa_core.agent import Agent

def launch():
    agent = Agent.load("models/dialogue")
    run.serve_application(agent, channel='cmdline')

if __name__ == ' __main__':
    launch()

```

Error:

```
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=

```

I’m not sure this is a Rasa problem, but I’m still at a loss for solutions…

Thanks

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 12, 2018, 8:08am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/6 "2018-09-12T08:08:11Z")

</div>

Hm, I’m not sure what’s going wrong with the Quickstart, because when i run it on the page, it’s fine. Can you try upgrading to 0.11.3? Not sure that’ll solve it though, do you have any restrictions on your machine regarding running things on localhost? Because it’s the right url that’s being called for sure

---

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 12, 2018, 8:13am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/7 "2018-09-12T08:13:25Z")

</div>

Thank you @akelad. I just posted an issue on Github about this too, just in case it makes things easier for your team (I hope it does, if not do not hesitate to close it 😃)

I tried running the Quickstart on all 0.11.\* versions, including 0.11.3, and the problem is the same. I don’t have any restrictions on localhost - this is a dev machine and I use a lot of servers on localhost. Everything works well in Rasa Core 0.10.4.

I really don’t know what I could try to pinpoint the problem. I tried changing the default port but that doesn’t fix it.

Edit: same problem with bleeding edge Rasa Core from Github.

---

<div class="post-metadata">

**Author:** ![ashukrishna100](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ashukrishna100/32/516_2.png) [@ashukrishna100](https://forum.rasa.com/u/ashukrishna100)\
**Post date:** [September 26, 2018, 11:40am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/8 "2018-09-26T11:40:42Z")

</div>

same problem with me on version 11.4 while applying interactive learning

---

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 26, 2018, 12:23pm UTC](https://forum.rasa.com/t/http-error-after-user-message/949/9 "2018-09-26T12:23:50Z")

</div>

Hi @ashukrishna100, I created a GitHub issue [here](https://github.com/RasaHQ/rasa_core/issues/983) if you want to chime in. In particular, could you try [this](https://github.com/RasaHQ/rasa_core/issues/983#issuecomment-420666795)?

Thanks

---

<div class="post-metadata">

**Author:** ![ashukrishna100](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ashukrishna100/32/516_2.png) [@ashukrishna100](https://forum.rasa.com/u/ashukrishna100)\
**Post date:** [September 26, 2018, 12:36pm UTC](https://forum.rasa.com/t/http-error-after-user-message/949/10 "2018-09-26T12:36:15Z")

</div>

@alecigne I just got this error resolved. I had applied `http_proxy` which was creating this error. Kindly remove any `http_proxy` from the environment variables if you are working behind a corporate firewall.

---

<div class="post-metadata">

**Author:** ![alecigne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alecigne/32/453_2.png) [@alecigne](https://forum.rasa.com/u/alecigne)\
**Post date:** [September 26, 2018, 1:07pm UTC](https://forum.rasa.com/t/http-error-after-user-message/949/11 "2018-09-26T13:07:25Z")

</div>

Thank you so much, I had this problem for a while with Rasa 0.11 and removing `http_proxy` did the trick!

---

<div class="post-metadata">

**Author:** ![shivkumar12](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@shivkumar12](https://forum.rasa.com/u/shivkumar12)\
**Post date:** [May 29, 2019, 9:14am UTC](https://forum.rasa.com/t/http-error-after-user-message/949/12 "2019-05-29T09:14:43Z")

</div>

This code indicates that the server has received and is processing the request, but no response is available yet. The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request.
