Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

url with '+' causing issues. #85

Open
apex-omontgomery opened this issue Aug 25, 2017 · 1 comment
Open

url with '+' causing issues. #85

apex-omontgomery opened this issue Aug 25, 2017 · 1 comment

Comments

@apex-omontgomery
Copy link

I found this bug, and submitted this to the api@imgur.com.

It appears to be an issue within the website and how it parses the url, as it's replicated by copy and pasting the image url to the homepage and doesn't happen when you save the image and drag image.

The specific call I'm using within python:
self.client.upload_from_url(url, config=None, anon=False)
example url:
https://static1.squarespace.com/static/50ae6cdfe4b09793f627a63b/t/5170a86ee4b09a3e33b049df/1366337647067/chicken+legs.jpg
exception message from cli:
imgurpython.helpers.error.ImgurClientError: (415) {'code': 1003, 'message': 'File type invalid (1)', 'type': 'ImgurException', 'exception': {}}
Inline image 2

@staticvoidzach
Copy link

Perhaps the lib should replace + with %20 before sending it off?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants