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

https request in appengine not works #130

Closed
pedrinhok29 opened this issue Mar 5, 2014 · 2 comments
Closed

https request in appengine not works #130

pedrinhok29 opened this issue Mar 5, 2014 · 2 comments

Comments

@pedrinhok29
Copy link

i am using de fql function from facebook sdk and this show me the erro:

GraphAPIError: You must use https:// when passing an access token

Help me, please!

@boffman
Copy link

boffman commented Mar 5, 2014

I get the same error, both in dev_appserver and in real GAE. I get a feeling it has something to do with the requests library (or urllib3) don't get along with the GAE urlfetch stuff? I've tried to debug it a little and the objects involved looks "HTTPSish" all the way in the requests/urllib3 code until the actual request is made..

In connectionpool.py, and HTTPConnection._make_request(), the "conn" object is of type requests.packages.urllib3.connection.VerifiedHTTPSConnection .. But it looks like then it does the conn.request() call, it does a HTTP request of it anyways;

        # conn.request() calls httplib.*.request, not the method in
        # urllib3.request. It also calls makefile (recv) on the socket.
        conn.request(method, url, **httplib_request_kw)

..it looks like in the github of the requests module that urllib3 has been updated "a month ago".. Could that have broken something with regards to how GAE handles stuff?

@martey
Copy link
Member

martey commented Mar 5, 2014

This looks like https://github.com/kennethreitz/requests/issues/1905. The accepted answer to the StackOverflow question in the issue's description suggests that requests 2.1.0 works. The consensus seems to be that this is a bug in Google App Engine's httplib's implementation (see https://github.com/kennethreitz/requests/issues/1911), and not our SDK or requests so I am closing this issue.

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

No branches or pull requests

3 participants