Skip to content

error: Error -3 while decompressing data: incorrect header check #22

Description

@gregwjacobs

Found an issue occuring when testing use of cyclops with Raven client 5.20.0

I get the following error in -vvv debug logs of cyclops:

2016-06-09 11:25:57,150 - tornado.application - ERROR - Uncaught exception POST /api/22/store/ (10.26.10.38)
HTTPRequest(protocol='http', host='prod-vm-sentry-cyclops-01', method='POST', uri='/api/22/store/', version='HTTP/1.1', remote_ip='10.26.10.38', headers={'Content-Length': '261', 'Accept-Encoding': 'identity', 'Content-Encoding': 'deflate', 'Connection': 'close', 'X-Sentry-Auth': 'Sentry sentry_timestamp=1465485957.17, sentry_client=raven-python/5.8.1, sentry_version=6, sentry_key=xxxxxxxxxxxxxxxxx, sentry_secret=yyyyyyyyyyyyyyyyyy', 'User-Agent': 'raven-python/5.8.1', 'Host': 'prod-vm-sentry-cyclops-01', 'Content-Type': 'application/octet-stream'})
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1320, in _stack_context_handle_exception
    raise_exc_info((type, value, traceback))
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1503, in wrapper
    result = method(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cyclops/handlers/router.py", line 174, in post
    self.backend_request(project_id)
  File "/usr/local/lib/python2.7/dist-packages/cyclops/handlers/router.py", line 99, in backend_request
    payload = loads(decompress(b64decode(self.request.body)))
error: Error -3 while decompressing data: incorrect header check
2016-06-09 11:25:57,151 - tornado.access - ERROR - 500 POST /api/22/store/ (10.26.10.38) 1.38ms

I send the following test payload via raven to produce this error (which is sane, for sentry 8.x.x versions I use in labs prior.

>>> DSN = 'http://XXXXXXXX:YYYYYYY@prod-vm-sentry-cyclops-01/22'
>>> import raven
>>> client = raven.Client(dsn=DSN)
>>> client.captureMessage("This is a test from raven via cyclops")
'a5fcc36f71e04dff94de11f1ec034c30'

I get a error 500 returned by the cyclops server (as expected given the exception) to the test client.

I presently am using raven client 5.20.00 and Cyclops was installed from the pip 1.1.1 version

Name: raven
Version: 5.20.0
Summary: Raven is a client for Sentry (https://getsentry.com)
Home-page: https://github.com/getsentry/raven-python

How else can I help resolve this. Do changes in Raven payloads require changes in cyclops,or is this an issue with compression/decompression and/or base64 encode/code libs of the client or server?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions