Sanic raises "Invalid response type None" error

Hi, I have a setup with Rasa 3.4.0. From today, I receive an error from Sanic: sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

The request was for this url:

ws://rasa-production:5005/socket.io/?transport=websocket&EIO=4&t=1677256668.530688

I could find older posts about such errors, but I am not sure if there is still a bug with the Rasa socket.io connection or if its my code. Where should I look to fix this error?

1 Like

The “Invalid response type None” error in Sanic typically occurs when the handler function returns None instead of a valid response object.

That means there is likely a problem with the response template definiton (e.g. typo)?