question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do we get Sentry to ignore uWSGI's OSError?

See original GitHub issue

Sometimes when the client has already disconnected, uWSGI will log an error like:

Thu Sep 10 02:13:33 2015 - uwsgi_response_write_body_do(): Broken pipe [core/writer.c line 331] during GET /_debug_toolbar/313339393934343438353938333532 (192.168.59.3)
OSError: write error

This will get recorded in Sentry even though there’s nothing actionable from our end… So what do we do? Is there some uWSGI setting to get it to stop throwing this error? Can we get sentry or raven to ignore it?

/cc @mattrobenolt

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

13reactions
idlesigncommented, Oct 25, 2017

Another option is to switch on disable-write-exception in uWSGI config.

2reactions
domenkozarcommented, Sep 13, 2015

Usually you just acknowledge the error in Sentry and it won’t send notifications anymore for this particular error. Ignoring OSError exception might hide other errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do we get Sentry to ignore uWSGI's OSError? · Issue #679
Another option is to switch on disable-write-exception in uWSGI config. 13
Read more >
How to fix uWSGI "OSError: write error"
Given that the default Django mail_admins logging handler didn't report the error, it was clear that only Sentry was really a problem here....
Read more >
uWSGI raises OSError: write error during large request
in my uWSGI config (note that I provide 3 options, not 2):. ignore-sigpipe makes uWSGI not show SIGPIPE errors;; ignore-write-errors makes it ...
Read more >
Logging uWSGI errors and alarms to Sentry - Theodo blog
It is important to do so: even if you have Sentry configured for your app, if the WSGI layer that is running it...
Read more >
OSError: write error in error.log : Forums - PythonAnywhere
I see a lot of "OSError: write error" message in my error log. Been there for weeks. I'm not getting any errors in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found