LocalProtocolError: Can't send data when our state is ERROR
(8 additional frame(s) were not displayed)
...
File "starlette/responses.py", line 255, in stream_response
await send(
File "starlette/middleware/errors.py", line 159, in _send
await send(message)
File "uvicorn/protocols/http/h11_impl.py", line 490, in send
output = self.conn.send(event=response)
File "h11/_connection.py", line 512, in send
data_list = self.send_with_data_passthrough(event)
File "h11/_connection.py", line 527, in send_with_data_passthrough
raise LocalProtocolError("Can't send data when our state is ERROR")