I'm trying to migrate my app to python 2.7 but when I do a
urlfetch.fetch to facebook for some data, it throws the following
exception:
File "C:\workspace\DjangoServer\src\mycode.py", line 167, in request
urlfetch.fetch(url="https://graph.facebook.com/me?
access_token=zzzzz&fields=id%2Cemail")
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\urlfetch.py", line 263, in fetch
return rpc.get_result()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\apiproxy_stub_map.py", line 592, in get_result
return self.__get_result_hook(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\urlfetch.py", line 365, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 2 [Errno 11003] getaddrinfo failed
The url in question looks like this:
https://graph.facebook.com/me?access_token=zzzzz&fields=id,email
, and works fine in the browser, but fails from the dev server. The
code I'm calling is dead simple:
file = urlfetch.fetch(url="https://graph.facebook.com/me?
access_token=zzzzz&fields=id%2Cemail")
and it worked fine in python 2.5. The only suggestion I found when
googling it was to turn off my fire wall, which didn't help, and some
stuff about proxies, which I'm not behind one.
Any ideas?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.