Firstly, thank you for your service! You guys are awesome ;)
Can you add stripe to whitelist?
The api endpoint is https://api.stripe.com
I think that's why I am getting this error
2015-07-12 18:01:55,756 :/usr/lib/python2.7/threading.py:1160: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
2015-07-12 18:01:55,756 : return _active[_get_ident()]
2015-07-12 18:01:55,754 :Error running WSGI application
None
2015-07-12 18:01:57,553 :Error running WSGI application
None
2015-07-12 18:01:58,990 :Error running WSGI application
None
2015-07-12 18:02:00,534 :Error running WSGI application
None
2015-07-12 18:02:19,725 :Error running WSGI application
None
2015-07-12 22:36:58,324 :Starting new HTTPS connection (1): api.stripe.com
2015-07-12 22:36:58,329 :Exception on /charge [POST]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/work/mysite/flask_app.py", line 25, in charge
card=request.form['stripeToken']
File "/usr/local/lib/python2.7/dist-packages/stripe/resource.py", line 259, in create
response, api_key = requestor.request('post', url, params)
File "/usr/local/lib/python2.7/dist-packages/stripe/api_requestor.py", line 123, in request
method.lower(), url, params)
File "/usr/local/lib/python2.7/dist-packages/stripe/api_requestor.py", line 209, in request_raw
method, abs_url, headers, post_data)
File "/usr/local/lib/python2.7/dist-packages/stripe/http_client.py", line 120, in request
self._handle_request_error(e)
File "/usr/local/lib/python2.7/dist-packages/stripe/http_client.py", line 140, in _handle_request_error
raise error.APIConnectionError(msg)
APIConnectionError: Unexpected error communicating with Stripe. If this problem persists,
let us know at support@stripe.com.
(Network error: ProxyError: Cannot connect to proxy. Socket error: Tunnel connection failed: 403 Forbidden.)
Thanks!