-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rasa Shell error following tutorial #5019
Comments
I got the same error. Looking for an answer. |
I found a reason which is the version of sanic doesn't match requirements, and try to install sanic 19.9.0 fix this error. |
@jxf1002 thanks for instructions how to fix it. |
From duplicate issue: The latest version of Sanic v19.12.0 has introduced breaking changes and has broken the rest input channel. Please change the dependency for sanic back to 19.9.0. |
@jxf1002 @Naktibalda can you confirm that it was v19.12.0 that introduced the breaking changes? does |
ya for me too sanic worked but the regular setup did not work. |
Thanks worked for me after a week of searching. |
@erohmensing sanic doesn't have v19.11.0. Collecting sanic==19.11.0 |
Oh, weird 🤔 perfect, we'll pinn 19.9.0, thanks for the help 👍 |
Yes, this works. Thank you |
Still does not work with sanic version 19.12.2, work around fixed it. |
This version should be correctly pinned in rasa 1.6.1. 👍 |
Hi Getting similar error in rasa 3.1 version, I tried pip install sanic==19.9.0, but did not work. Nay help? TRACE: The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Rasa Shell gives following error on input
Exception occurred while handling uri: 'http://localhost:5005/webhooks/rest/webhook?stream=true&token=' Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/sanic/app.py", line 946, in handle_request request, request_name=name TypeError: _run_request_middleware() got an unexpected keyword argument 'request_name' Exception occurred in one of response middleware handlers Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/sanic/app.py", line 1017, in handle_request request, response, request_name=name TypeError: _run_response_middleware() got an unexpected keyword argument 'request_name' 2019-12-28 05:06:15 ERROR asyncio - Task exception was never retrieved future: <Task finished coro=<configure_app.<locals>.run_cmdline_io() done, defined at /usr/local/lib/python3.6/dist-packages/rasa/core/run.py:124> exception=ClientResponseError(RequestInfo(url=URL('http://localhost:5005/webhooks/rest/webhook?stream=true&token='), method='POST', headers=<CIMultiDictProxy('Host': 'localhost:5005', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Python/3.6 aiohttp/3.6.2', 'Content-Length': '41', 'Content-Type': 'application/json')>, real_url=URL('http://localhost:5005/webhooks/rest/webhook?stream=true&token=')), (), status=500, message='Internal Server Error', headers=<CIMultiDictProxy('Connection': 'keep-alive', 'Keep-Alive': '5', 'Content-Length': '144', 'Content-Type': 'text/html; charset=utf-8')>)> Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/rasa/core/run.py", line 128, in run_cmdline_io server_url=constants.DEFAULT_SERVER_FORMAT.format("http", port) File "/usr/local/lib/python3.6/dist-packages/rasa/core/channels/console.py", line 140, in record_messages async for response in bot_responses: File "/usr/local/lib/python3.6/dist-packages/rasa/core/channels/console.py", line 104, in send_message_receive_stream async with session.post(url, json=payload, raise_for_status=True) as resp: File "/usr/local/lib/python3.6/dist-packages/aiohttp/client.py", line 1012, in __aenter__ self._resp = await self._coro File "/usr/local/lib/python3.6/dist-packages/aiohttp/client.py", line 588, in _request resp.raise_for_status() File "/usr/local/lib/python3.6/dist-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status headers=self.headers) aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('http://localhost:5005/webhooks/rest/webhook?stream=true&token=')
Steps to reproduce
On Ubuntu 18.04 LTS as root
apt install python3-dev python3-pip
pip3 install -U pip
python3 --version
pip --version
pip install rasa
rasa init --no-prompt
rasa shell
hello
The text was updated successfully, but these errors were encountered: