Comments (10)
After countless brainfucking hours of debugging I at least found a workaround: Add an explicit import of the sentry.client.models to the WSGI Handler
class WSGIHandler(base.BaseHandler):
initLock = Lock()
request_class = WSGIRequest
def __call__(self, environ, start_response):
from django.conf import settings
__import__('sentry.client.models') #Add this here...
from sentry.
Did you add sentry.client to your INSTALLED_APPS?
from sentry.
yes, I did. I did not worry about this for quite some time, maybe I check back with the current version...
from sentry.
Hi, I happen to get the same error. Sentry works perfect with runserver at production.
Uwsgi/nginx also works perfect as long as no exceptions are thrown, but as soon as exception is thrown, nothing is returned to the browser and nginx returns after 60 seconds a 504 gateway timeout. The import trick in the WSGIHandler did not work for me.
from sentry.
I could trace the error to something in HttpResponse.raw_post_data. content_length equals zero and self.read blocks in there.
SentryClient.process accesses raw_post_data
See django/http/init.py
from sentry.
See:
http://groups.google.com/group/django-developers/browse_thread/thread/6e9fa9a919e8a471
from sentry.
Thanks, jonathan!
Upgrade to uwsgi 0.9.8.3 really helps but one problem continue to exists: in /sentry admin I can't mark exception as resolved. Nothing happens when a check box button is pressed. Of course without uwsgi all works correctly. So the problem is in uwsgi + sentry.
from sentry.
I just upgraded to uwsgi 0.9.9.2 and everything seems to be working, though I haven't done much testing. My app no longer hangs, and the Sentry web interface works.
from sentry.
Awesome. Looks like we need to update the docs with some compatibility notes on version reqs
from sentry.
There's actually two problems that are being discussed in this issue. I had them both.
The first one was the one that ulf describes in his first two comments. When running under uwsig, the models file never gets loaded, even though "raven.contrib.django" is in INSTALLED_APPS. I solved it by adding a manual import of raven.contrib.django.models in my wsgi-file.
The second problem was the one with uwsgi having hanging when accessing raw_post_data, and that one was solved by upgrading uwsgi (which was a pain in the ass, since I was previously using an ubuntu package, and now I had to create my own upstart files etc).
from sentry.
Related Issues (20)
- [SPIKE] Figure out if we can query multiple use cases in the metrics meta (at once)
- Microsoft Teams Integration Problem HOT 7
- About the mute for everybody button in the alert rule page. HOT 3
- Support alerting a percentage of allocation on tag values over time period HOT 3
- [API] Not all members (of our org) are returned from our `/users` endpoint HOT 2
- Create charts for feedback onboarding click analytics
- Issue Details onboarding on UF tab
- TypeError: Cannot read properties of null (reading 'startsWith') HOT 1
- Issue's Owners don't change even if the team does not exist HOT 7
- Able to filter out archived errors for metric alert HOT 5
- [Product Category Trials] Show βΎοΈ as the reserved quota during a product category trial HOT 2
- Sentry throws errors while it should receive errors HOT 3
- User Feedback Feature Request: Custom context HOT 2
- Need FIPS 140-3 support HOT 4
- Hide whole queries in metrics explorer
- Hide queries in metrics explorer
- Implement unit normalization for formulas
- Metric widget X axis labels
- Enable order by in dashboard table widget
- Area chart covers samples HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry.