getsentry / raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
https://sentry.io
BSD 3-Clause "New" or "Revised" License
1.68k stars 658 forks source link

Empty reply from server in python 3.6.1 on flask with Content-Type: application/json #1010

Open ismaeIfm opened 7 years ago

ismaeIfm commented 7 years ago

I'm getting "Empty reply from server" using python 3.6.1 and flask 0.12 with raven 6.1.0 and blinker 1.3 whe n using the header "Content-Type: application/json". Working ok without the header or without the import of from raven.contrib.flask import Sentry

mattrobenolt commented 7 years ago

Do you have a stacktrace or anything else to go with this coming from the server? Usually this happens as a side effect of the WSGI server crashing or erroring.

ismaeIfm commented 7 years ago

Sorry I just forgot to tell that I'm using gunicorn==19.7.1, and there's no stacktrace or even warning message, it appears that gunicorn doesn't receive the petition. What seems very interesting is that in python 3.5 it works.

ashwoods commented 7 years ago

Might be related to #1067.