Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: aborted in sanic 23.12 #2890

Open
1 task done
vincentdtt opened this issue Jan 5, 2024 · 3 comments
Open
1 task done

Error: aborted in sanic 23.12 #2890

vincentdtt opened this issue Jan 5, 2024 · 3 comments
Assignees
Labels

Comments

@vincentdtt
Copy link

Is there an existing issue for this?

  • 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 vincentdtt added the bug label Jan 5, 2024
@PushUpek
Copy link

PushUpek commented Jan 25, 2024

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.

@ahopkins
Copy link
Member

Thanks for digging into this. Looking into it now .

@ahopkins ahopkins self-assigned this Jan 25, 2024
@Borsalinoo
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants