-
Notifications
You must be signed in to change notification settings - Fork 467
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: [Errno 32] Broken pipe #284
Comments
No clue about the broken pipe, is this on the development server only or in production servers (gunicorn or uwsgi ?). I don't think we do any error handling: https://django-autocomplete-light.readthedocs.org/en/v2/_static/widget.html But you could override a method like yourlabs.Autocomplete.prototype.makeXhr: |
This happens both in production and development. Note that jqXHR.status is always zero. This error is the ajax call death after the connection dies. It happens only with autocomplete. See:
or
|
Well autocomplete.js does abort a number of requests on purpose: Maybe that's what you're talking about ? |
Quite possibly. Though the effect is seen both during heavy typing and during slow typing. I've modified my global error handler to try and ignore connection closed, but it's crude:
|
I'd love to be able to reproduce this !! |
Did you check if throttling is working correctly on the client side ? thanks B) |
There's an accepted answer on the stackoverflow: http://stackoverflow.com/questions/7436195/disabling-some-jquery-global-ajax-event-handlers-for-a-request/7436344#7436344 Closing. |
That answer is about ignoring the error... rather than preventing the error. |
The issue is about reporting an error with your specific infrastructure .. rather than provide steps to reproduce it or a test case. Please reopen when you're able and willing to provide more detail. |
I've opened a followup issue on the new repo for the JS: yourlabs/jquery-autocomplete-light#3 IMHO, there is no way no one can do anything about it, but just in case I'm leaving it open cuntil the repo is too polluted with issues which we can't do anything about. IMHO, it's an HTTP request that autocomplete.js made but canceled in favor of a newer HTTP request. With proper server configuration I don't think this would happen but really, I can't reproduce so I wonder @brycenesbitt could let me know what he'd recommend we do about it. Thanks for the detailed report and helpful attempt to help. |
Sincerely I closed it because I've been through it many times while triaging and always came to the same conclusion: not enough detail, can't reproduce the user was focused on working around this in his error handler rather than trying to contribute a proper fix. You should understand that we're several volunteers going through the issue list and every time there's an issue that's not fixable (not enough detail, not reproducible, user didn't really care to help us) then it's time the volunteer could have used on a fixable issue (detailed, reproducible, with helpful user feedback). As far as I'm concerned we don't even have proof there's a bug in autocomplete-light here. This might be just a throttling setting in the JS which should be increased to not break under-sized servers. Who can tell really. Anyway, it's time for me to move on to issues which can potentially be reproduced, tested and fixed. All I can say for now is that the JS has been extracted as a standalone jQuery plugin and maybe someone in the JS community will be able to fix something related. I hope these explanations are sufficient for your understanding and that you will post what you think I should have done instead of that. Have a good day |
Same for you! :) |
Having a great time at the conference, you should be there bro !! |
For reasons I don't fully understand, about one in 50 of django-autocomplete-light's ajax queries return with Broken Pipe on my server:
This would go unnoticed in most cases, except for this global error handler:
Is there a way to override the default error handler for yourlabsAutocomplete ?
See http://stackoverflow.com/a/7436344/311364
Any clue on the Broken pipe?
The text was updated successfully, but these errors were encountered: