ConnectionError: ('Connection aborted.', error(13, 'Permission denied')) #3018

OneSecure opened this Issue Feb 17, 2016 · 2 comments


None yet

2 participants


On GAE, it went wrong.
WARNING 2016-02-17 14:06:22,023] Stripped prohibited headers from URLFetch request: ['Host']
INFO 2016-02-17 14:06:22,773] Starting new HTTPS connection (1):
ERROR 2016-02-17 14:06:23,531] ('Connection aborted.', error(13, 'Permission denied'))
Traceback (most recent call last):
File "/Users/go_appengine/lib/webapp2-2.3/", line 1511, in call
rv = self.handle_exception(request, response, e)
File "/Users/go_appengine/lib/webapp2-2.3/", line 1505, in call
rv = self.router.dispatch(request, response)
File "/Users/go_appengine/lib/webapp2-2.3/", line 1253, in default_dispatcher
return route.handler_adapter(request, response)
File "/Users/go_appengine/lib/webapp2-2.3/", line 1077, in call
return handler.dispatch()
File "/Users/go_appengine/lib/webapp2-2.3/", line 547, in dispatch
return self.handle_exception(e,
File "/Users/go_appengine/lib/webapp2-2.3/", line 545, in dispatch
return method(_args, *_kwargs)
File "/Users/Desktop/", line 27, in get
postBingImageToWeibo(prefix, userUrl)
File "/Users/Desktop/", line 60, in postBingImageToWeibo'statuses/upload', status=info, pic=picFile)
File "/Users/Desktop/", line 130, in post
File "/Users/Desktop/requests/", line 511, in post
return self.request('POST', url, data=data, json=json, *_kwargs)
File "/Users/Desktop/requests/", line 468, in request
resp = self.send(prep, *_send_kwargs)
File "/Users/Desktop/requests/", line 576, in send
r = adapter.send(request, **kwargs)
File "/Users/Desktop/requests/", line 426, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(13, 'Permission denied'))
INFO 2016-02-17 14:06:23,598] default: "GET /retrievedata HTTP/1.1" 500 114

Lukasa commented Feb 17, 2016

I'm afraid that Requests does not consider google app engine a supported platform. In this case, the issue you're likely having is that requests attempts to use sockets for its connections, and those are not always allowed on GAE.

@Lukasa Lukasa closed this Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment