Closed niudinlp closed 1 year ago
Is your server heavily loaded? HTTP 503 ServiceUnavailable would indicate that, probably goes along with those CancellationErrors. But could you add code tags (three backwards ticks before and after code) on your message to make it more readable?
@niudinlp Two things:
First, this is not a bug, or at least I do not see you presenting us with one. This to me looks like a support request, which should be addressed to the proper channels if you would like our help.
A bug report should include a snippet of minimal, reproducible code so we can investigate.
Is there an existing issue for this?
Describe the bug
There is one error in my app server:
File "/usr/local/lib/python3.8/site-packages/sanic/http/http1.py", line 123, in http1 await self.http1_request_header() File "http1_request_header", line 18, in http1_request_header ServiceUnavailable, File "/usr/local/lib/python3.8/site-packages/sanic/server/protocols/base_protocol.py", line 82, in receive_more await self._data_received.wait() File "/usr/local/lib/python3.8/asyncio/locks.py", line 309, in wait await fut asyncio.exceptions.CancelledError
Code snippet
app
app = Sanic(name='trait', config=Config(defaults=config))
exception
app.error_handler.add(Exception, handle_exception)
def handle_exception(request, e): traceback.print_exc()
Expected Behavior
No response
How do you run Sanic?
As a script (
app.run
orSanic.serve
)Operating System
Ubuntu 22.04.1 LTS
Sanic Version
22.6.2
Additional context
No response