Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad post vars #147

Closed
ethanmiller opened this issue May 11, 2011 · 3 comments
Closed

Bad post vars #147

ethanmiller opened this issue May 11, 2011 · 3 comments

Comments

@ethanmiller
Copy link

I set up separate server and client machines - and spent a while trying to figure out if I had all the settings right. As far as I could tell, I did - but I kept running into the 'if not data:' line (sentry/web/views.py:383).

When I had a look at the post vars that were coming in - I had a single base64 encoded string as the key, and an empty value.

I got past this by making a new dict with the 'data' key, and then urllib.urlencode-ing that as the data argument to send_remote: https://gist.github.com/966741

I feel like I must have missed something to get myself these results. If the patch is actually correct, I can move the import up, and send a pull request for it.

@marvoloe
Copy link

marvoloe commented Jun 3, 2011

I have the latest download running. Still get that error, the patch doesnt Work: Credential Problems. Any Idea?

Traceback (most recent call last):
  File "/Users/mrempires/Projects/mrempires/est-belle/lib/python2.6/sentry/client/base.py", line 210, in send
    return self.send_remote(url=url, data=message, headers=headers)
  File "/Users/mrempires/Projects/mrempires/est-belle/lib/python2.6/sentry/client/base.py", line 189, in send_remote
    response = urllib2.urlopen(req, data).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 389, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 427, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 510, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: FORBIDDEN

@dcramer
Copy link
Member

dcramer commented Jun 3, 2011

@marvoloe are you using mod_wsgi, and did you set WSGIPassAuthorization to On?

@marvoloe
Copy link

marvoloe commented Jun 3, 2011

Yes and no, now it works. Where did I miss that? It wasn't in the docs, was it? THANK YOU.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants