-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
error: Error -3 while decompressing data: incorrect header check #22
Comments
I also am seeing:
Still looking deeper. So far I can confirm wireshark can properly decompress and decode the base64 payload and the JSON data is formatted correctly. |
Using:
|
I found the likely issue. This patch gets system working. /cyclops/handlers/router.py
Looks like the logic ideally should do the following
I can work on a Pull Request with a clean fix if you'd like? |
I should note, this was done directly, no use of the nginx instance in front of cyclops. Is it possible the data presented via nginx differs hitting cyclops directly? (will test on my end also) |
I confirmed this still occurs when being used verbatim with cyclops setup example (behind nginx reverse proxy) 2016-06-14 10:31:03,247 - tornado.application - ERROR - Uncaught exception POST /api/22/store/ (127.0.0.1)
HTTPRequest(protocol='http', host='gateway', method='POST', uri='/api/22/store/', version='HTTP/1.0', remote_ip='127.0.0.1', headers={'Content-Length': '433', 'Accept-Encoding': 'identity', 'Content-Encoding': 'deflate', 'Host': 'gateway', 'X-Sentry-Auth': 'Sentry sentry_timestamp=1465914663.07, sentry_client=raven-python/5.20.0, sentry_version=6, sentry_key=xxxxxxxxxxxxxxxxx, sentry_secret=yyyyyyyyyyyyyy', 'User-Agent': 'raven-python/5.20.0', 'Connection': 'close', '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)))
File "/usr/lib/python2.7/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding |
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:
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.
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
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?
The text was updated successfully, but these errors were encountered: