Aiohttp ClientResponseError

Hello. After trying to run my bot, I’m getting the error:

 ERROR    asyncio  - Task exception was never retrieved
future: <Task finished name='Task-9' coro=<SignalRouter._dispatch() done, defined at C:\Users\User\anaconda3\lib\site-packages\sanic\signals.py:121> 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.9 aiohttp/3.7.4', 'Content-Length': '63', 'Content-Type': 'application/json')>, real_url=URL('http://localhost:5005/webhooks/rest/webhook?stream=true&token=')), (), status=400, message='Bad Request', headers=<CIMultiDictProxy('Content-Length': '0')>)>
Traceback (most recent call last):
  File "C:\Users\User\anaconda3\lib\site-packages\sanic\signals.py", line 161, in _dispatch
    retval = await maybe_coroutine
  File "C:\Users\User\anaconda3\lib\site-packages\sanic\app.py", line 1581, in run_delayed_task
    await prepped
  File "C:\Users\User\anaconda3\lib\site-packages\rasa\core\run.py", line 135, in run_cmdline_io
    await console.record_messages(
  File "C:\Users\User\anaconda3\lib\site-packages\rasa\core\channels\console.py", line 195, in record_messages
    async for response in bot_responses_stream:
  File "C:\Users\User\anaconda3\lib\site-packages\rasa\core\channels\console.py", line 141, in _send_message_receive_stream
    async with session.post(url, json=payload, raise_for_status=True) as resp:
  File "C:\Users\User\anaconda3\lib\site-packages\aiohttp\client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "C:\Users\User\anaconda3\lib\site-packages\aiohttp\client.py", line 625, in _request
    resp.raise_for_status()
  File "C:\Users\User\anaconda3\lib\site-packages\aiohttp\client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('http://localhost:5005/webhooks/rest/webhook?stream=true&token=')

What does this mean? It’s never happened before. I’ve used this model before and never had a problem like this.

Thanks!

Ah I feel so dumb… It was an indentation error :sweat_smile: