-
-
Notifications
You must be signed in to change notification settings - Fork 26
Getting APIErrors from Sentry #4
Comments
Same thing. This is the cause: aio-libs/aiohttp#619 Although I think aiohttp's API should make it possible to send requests like this, I also think the responsibility of compressing (or to not compress) the data should in the transport, not in core raven-python. Different libraries may have different needs. |
@mwfrojdman compression cant happen in the transport as the server is responsible for decompression and it only supports a fixed set of routines. All transports should be able to support gzipped data as its almost required in order for reliable transport. That said, It's not clear to me what is wrong here. @hynek do you have the ability to reproduce this? i can give you an account on getsentry.com to see if maybe we resolved this in 8.0 |
The transport is on the client side so it shouldn't matter to the server which layer on the client the compression happens. I got the thing working by adding these to lines to raven-aiohttp/raven_aiohttp.py Line 37 in 04b2768
def async_send(self, data, headers, success_cb, failure_cb):
data = zlib.decompress(data)
del headers['Content-Encoding']
@asyncio.coroutine
def f(): There are two things leading to errors:
I'm doing a pull req against aiohttp that will hopefully resolve the issue. |
@dcramer for me reproduction = trying to submit an error. :) I’m not sure why it would work for anyone. :) |
This should be reoslved in 0.2.0 |
When I use the default transport, everything is dandy. But if I add this transport I’m getting:
Is it me or is something broken?
Sentry 7.7.1
raven-aiohttp 0.1.1
raven 5.8.1
The text was updated successfully, but these errors were encountered: