Comments (6)
I can confirm this problem this problem has been brought up to me at some events too. Not sure if an issue or documentation.
from braintree_python.
@vrypan I believe this is a problem with a recent version of the requests library (a dependency of our library). Can you let us know what version of requests you're using, and try version 2.6.0 to see if that fixes it?
from braintree_python.
We've tracked this down to a bug in urllib3 (urllib3/urllib3#616), a dependency of requests. It exists in requests version 2.6.1 and higher, so 2.6.0 is currently the latest version that works.
from braintree_python.
I don't know for you guyz, but to avoid the issue, while waiting for a new release of the api, (and urllib3 if I read correctly) I use .encode('utf-8') on all the data I pass before making the transaction. It works but it is NOT a long term solution. I do not really like this....
from braintree_python.
@adrienbrunet The issue is now being tracked at https://github.com/kennethreitz/requests/issues/2595 and they will hopefully update their version of urllib3 soon. It would be helpful if you could post the exact details of your problem, so I can make sure the latest version of urllib3 fixes it.
from braintree_python.
I've updated the appengine example to cover this problem. Basically, don't use requests 2.6.1, 2.6.2, or 2.7.0. Hopefully later versions will fix the issue.
Alternatively, you can add this to your app.yaml:
env_variables:
GAE_USE_SOCKETS_HTTPLIB : 'anyvalue'
see https://github.com/kennethreitz/requests/issues/2595#issuecomment-101795229 for more info.
@adrienbrunet I don't think your issue is the same. If you're having unicode issues, you can email me at [email protected] and I'll try to help you out.
from braintree_python.
Related Issues (20)
- gateway.transaction.find raises a TypeError when initialised with client_id and secret HOT 2
- Respect the requests_ca_bundle environment variable HOT 2
- Transaction using nonce fails but payment method gets vaulted with option "store_in_vault_on_success" HOT 1
- Is this library thread-safe? HOT 3
- Connection pooling HOT 3
- Module fails on import HOT 1
- TypeError: can only concatenate str (not "NoneType") to str HOT 1
- Braintree created subscription not showing in sandox account HOT 3
- Print transactions in JSON format HOT 4
- Headers provided by braintree http util contain mixture of str/bytes HOT 2
- Remove universal wheel, python 2 is unsupported HOT 2
- Use python_requires='>=3.5' HOT 2
- Paypal credit
- strings with special regex characters are causing a DeprecationWarning HOT 3
- Include updated_at field in TransactionSearch HOT 2
- Go SDK + CloudQuery source plugin? HOT 1
- Can't upgrade to Braintree 4.18.1 / Python 3.10.9 (DeprecationWarning: Use ProtectionLevel enum instead) HOT 11
- braintree python sdk support initWithAuthorization/initWIthAPIClient like iOS SDK and receive client token as argues? HOT 1
- Unittest failures on Python 3.12 HOT 1
- Expose error details in "UnexpectedException" in Python library HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree_python.