-
Notifications
You must be signed in to change notification settings - Fork 910
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
Internal Server Error: object supporting the buffer API required #203
Comments
Taking a look, it means that self.body isn't an object that has a buffer api... What are you passing in as the body? |
I've been fallowing this code: |
Python-oauth2 is backwards compatible with 2.7, but I'd say there's some On Wed, 13 Jan 2016 at 12:16 Filip Wiśniewski [email protected]
|
Yes I can, I won't do it now cause it's late night in my timezone, but I will put you here the snippet tomorrow. |
Hey @speedingdeer how'd you go? |
Bump @speedingdeer |
Here is the code I'm trying to use from the wiki:
|
Nevermind, I was using a GET when I needed to POST. Thanks. |
may be this PR can fix this issue ) |
Hi, I'm on python 3.4.0 and python-oauth2 1.9. The doc says it supports python up to 3.4 but it doesn't work for me.
Traceback (most recent call last):
File "/Users/speedingdeer/code/.../pyvenv3.4/lib/python3.4/site-packages/bottle.py", line 862, in _handle
return route.call(*_args)
File "/Users/speedingdeer/code/.../pyvenv3.4/lib/python3.4/site-packages/bottle.py", line 1732, in wrapper
rv = callback(_a, **ka)
File "server.py", line 242, in do_oauth_callback
resp, content = client.request(request_url, 'GET')
File "/Users/speedingdeer/code/.../pyvenv3.4/lib/python3.4/site-packages/oauth2/init.py", line 687, in request
connection_type=connection_type)
File "/Users/speedingdeer/code.../pyvenv3.4/lib/python3.4/site-packages/httplib2/init.py", line 1314, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/Users/speedingdeer/code/.../pyvenv3.4/lib/python3.4/site-packages/httplib2/init.py", line 1116, in _request
headers=headers, redirections=redirections - 1)
File "/Users/speedingdeer/code/.../pyvenv3.4/lib/python3.4/site-packages/oauth2/init.py", line 673, in request
req.sign_request(self.method, self.consumer, self.token)
File "/Users/speedingdeer/code/.../pyvenv3.4/lib/python3.4/site-packages/oauth2/init.py", line 493, in sign_request
self['oauth_body_hash'] = base64.b64encode(sha1(self.body).digest())
TypeError: object supporting the buffer API required
Do you know something about this issue?
The text was updated successfully, but these errors were encountered: