I am trying to use Braintree in my GAE app using devserver. However I am getting socket blocked errors.
Below is the stack trace. This seemed to be a https issue. I have tried different approaches a) https://github.com/agfor/braintree-python-appengine . Gave me same error b) I thought this could be the error from this issue - https://urllib3.readthedocs.org/en/latest/security.html#openssl-pyopenssl But on updating required libraries , I get stuck at OpenSSL.crypto failed import. Any clues how to debug this? INFO 2015-10-09 11:07:31,718 connectionpool.py:695] Starting new HTTPS connection (1): api.sandbox.braintreegateway.com DEBUG 2015-10-09 11:07:31,724 api_server.py:277] Handled remote_socket.Resolve in 0.0028 DEBUG 2015-10-09 11:07:31,728 api_server.py:277] Handled remote_socket.CreateSocket in 0.0009 DEBUG 2015-10-09 11:07:32,049 api_server.py:277] Handled remote_socket.Connect in 0.3168 DEBUG 2015-10-09 11:07:32,055 api_server.py:272] Exception while handling service_name: "remote_socket" method: "GetSocketOptions" request: "\n$d15a35d7-d299-43c1-ba76-8bf4107f8850\022\006\010\001\020\003\032\000" request_id: "aiUMNcTaLS" Traceback (most recent call last): File "/home/abc/Downloads/google-appengine/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 247, in _handle_POST api_response = _execute_request(request).Encode() File "/home/abc/Downloads/google-appengine/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 186, in _execute_request make_request() File "/home/abc/Downloads/google-appengine/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 181, in make_request request_id) File "/home/abc/Downloads/google-appengine/google_appengine/google/appengine/api/apiproxy_stub.py", line 131, in MakeSyncCall method(request, response) File "/home/abc/Downloads/google-appengine/google_appengine/google/appengine/api/remote_socket/_remote_socket_stub.py", line 56, in WrappedMethod return method(self, *args, **kwargs) File "/home/abc/Downloads/google-appengine/google_appengine/google/appengine/api/remote_socket/_remote_socket_stub.py", line 265, in _Dynamic_GetSocketOptions 'Attempt to get blocked socket option.')ApplicationError: ApplicationError: 5 Attempt to get blocked socket option. DEBUG 2015-10-09 11:07:32,056 api_server.py:277] Handled remote_socket.GetSocketOptions in 0.0014 INFO 2015-10-09 11:07:32,058 views.py:570] handle_exception INFO 2015-10-09 11:07:32,061 views.py:574] Traceback (most recent call last): File "/home/abc/Downloads/google-appengine/google_appengine/lib/webapp2-2.5.2/webapp2.py", line 570, in dispatch return method(*args, **kwargs) File "/home/abc/projects/src/views.py", line 821, in get self._callHandlingMethod(url, self.getRegexps) File "/home/abc/projects/src/views.py", line 898, in _callHandlingMethod function(*matched.groups()) File "/home/abc/projects/src/views.py", line 3007, in buy_get "client_token": braintree.ClientToken.generate(), File "/home/abc/projects/src/lib/braintree/client_token.py", line 25, in generate return gateway.generate(params) File "/home/abc/projects/src/lib/braintree/client_token_gateway.py", line 17, in generate response = self.config.http().post("/client_token", params) File "/home/abc/projects/src/lib/braintree/util/http.py", line 49, in post return self.__http_do("POST", path, params) File "/home/abc/projects/src/lib/braintree/util/http.py", line 71, in __http_do raise e ConnectionError: ('Connection aborted.', error(13, 'Permission denied')) -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/6dc6794d-69c2-4c20-a5ef-3f8cb77b12a8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
