sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

I have a infraestructure that the chatbot is up in a server and I access the chatbot in a webpage that connect with server.

But appears that, when do not have a dialog with the bot during a long time, I see the following error:

[ERROR] Exception occurred while handling uri: 'ws://chatbot.aaa.br:5005/socket.io/?EIO=4&transport=websocket&sid=WheCb5BS714PzTlsAAAA'
Traceback (most recent call last):
  File "handle_request", line 124, in handle_request
sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

@renannarciso any solution to this issue, i am also facing the same