Code Monkey home page Code Monkey logo

Comments (6)

cbetta avatar cbetta commented on September 17, 2024

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.

agfor avatar agfor commented on September 17, 2024

@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.

agfor avatar agfor commented on September 17, 2024

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.

adrienbrunet avatar adrienbrunet commented on September 17, 2024

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.

agfor avatar agfor commented on September 17, 2024

@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.

agfor avatar agfor commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.