sanic icon indicating copy to clipboard operation
sanic copied to clipboard

Error: aborted in sanic 23.12

Open vincentdtt opened this issue 6 months ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

When i call get method to get list data from server, with paging data (< 1000 object) sometime connection was lost and show Error: aborted but if i set paging > 1000 all request get Error: aborted. This error is gone when i downgrade to old version 23.6. i'm using haproxy for loading balance.

image

Code snippet

No response

Expected Behavior

No response

How do you run Sanic?

Sanic CLI

Operating System

Linux

Sanic Version

23.12

Additional context

No response

vincentdtt avatar Jan 05 '24 07:01 vincentdtt

I have the same problem with Nginx reverse proxy. After day of checking commits from Sanic 23.12 changelog I found that this change #2831 is responsible for this problem. When I removed this method: https://github.com/sanic-org/sanic/blob/main/sanic/server/protocols/http_protocol.py#L231-L242 problem not occures any more.

PushUpek avatar Jan 25 '24 10:01 PushUpek

Thanks for digging into this. Looking into it now .

ahopkins avatar Jan 25 '24 14:01 ahopkins

I have the same problem with Nginx reverse proxy. After day of checking commits from Sanic 23.12 changelog I found that this change #2831 is responsible for this problem. When I removed this method: https://github.com/sanic-org/sanic/blob/main/sanic/server/protocols/http_protocol.py#L231-L242 problem not occures any more.

Great job, buddy! This issue has been troubling me for several days, very grateful for your answer!

Borsalinoo avatar May 07 '24 16:05 Borsalinoo