-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change to use json parameter breaks on request < 2.4.2 #88
Comments
I am thinking about that, because if we have to support older versions, then we need another solution. What about avoid requests and use another library? What if you install the latest version using pip? |
@andrewsomething By running the tests with the dockerfile I wrote, it seems working properly on ubuntu 14.04 with both python 2 and python 3... can you check? Probably it is just a question of mocking the requests... |
Installing requests with pip will get the latest version, and I can confirm that it allows the tests to pass. I can also confirm the Docker image successfully runs the tests (great idea!). The problem for me is that I distribute digitalocean-indicator as Debian package. As it's a GUI app, asking end users to use pip isn't great. I guess I can backport requests though... |
What about a specific environment? |
requests 2.4.2 was only released on 2014-10-05 so I guess it needs to be supported.
is really just a shortcut for
or something pretty similar. So to support older versions of requests we could change to that Alternatively we could go back to using query parameters but just make sure to translate booleans properly. However I think JSON's better. |
2.7.6 also it doesn't work, but works on 2.7.11 |
Same problem? Should we update the requirement? |
working fine with 2.7.6,issue with 2.7.9. |
Is this a problem related to python-digital ocean dependency? If so, I may need to understand the bug that you are reporting and which version is fixing this... or alternatively, change the code to work properly with the latest version available. Can somebody help me in this process? |
The json parameter wasn't added to requests until version 2.4.2 So python-digitalocean is currently broken on systems with older versions like Ubuntu 14.04:
I'm a bit conflicted on this issue as using json instead of query params is definitely the "right" thing to do, but Ubuntu 14.04 is an important target for me personally (https://github.com/andrewsomething/digitalocean-indicator) A more graceful fall back would be best.
The text was updated successfully, but these errors were encountered: