ERROR sanic.root - SPF caught an error that should have been caught by Sanic response handler in rasa

Getting sanic server error on running rasa x This is what I am getting on terminal side: It would be a great help to me if anyone can help me in resolving this error.

2020-04-08 12:35:06 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<run_operation_in_single_sanic_worker..execute() running at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasax/community/utils.py:768> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x142336708>()]>> 2020-04-08 12:35:06 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<SanicPluginsFramework._handle_request() running at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spf/framework.py:554> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x1426bd8e8>()]>> 2020-04-08 12:35:06 ERROR sanic.error - Exception occurred in one of response middleware handlers Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sanic/app.py”, line 976, in handle_request response = await response GeneratorExit

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sanic/app.py”, line 1017, in handle_request request, response, request_name=name File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spf/framework.py”, line 677, in _run_response_middleware_19_12 _response = await _response File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasax/community/database/utils.py”, line 202, in remove_session if response.status < HTTPStatus.BAD_REQUEST: AttributeError: ‘coroutine’ object has no attribute ‘status’ 2020-04-08 12:35:06 ERROR sanic.root - SPF caught an error that should have been caught by Sanic response handler. 2020-04-08 12:35:06 ERROR sanic.root - 2020-04-08 12:35:06 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<SanicPluginsFramework._handle_request() running at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spf/framework.py:554> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x1426d8a08>()]>> 2020-04-08 12:35:06 ERROR sanic.error - Exception occurred in one of response middleware handlers Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sanic/app.py”, line 976, in handle_request response = await response GeneratorExit

Hi @Prskriti,

Can you please describe in detail:

  • the steps you took to install Rasa X
  • the OS you use (mac, windows, linux)
  • when the error occurs

ERROR asyncio - Task was destroyed but it is pending! Aug 31 14:00:10 scl000107781 start_rasa_x.sh[515131]: task: <Task pending coro=<run_operation_in_single_sanic_worker..execute() running >

I am also getting same error , please help some one

@adarshjava share your rasa --version and error screenshot