You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
So I am trying to uplaod a gif using the upload_from_path function. This works for small gifs, but when I try to upload a larger one I get the following error:
Traceback (most recent call last):
File "C:\Program Files\Anaconda3\lib\site-packages\imgurpython\client.py", line 156, in make_request
response_data = response.json()
File "C:\Program Files\Anaconda3\lib\site-packages\requests\models.py", line 808, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\Anaconda3\lib\json\__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Anaconda3\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Anaconda3\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\richard\Desktop\imgur_test.py", line 62, in <module>
response = upload(file_name)
File "C:\Users\richard\Desktop\imgur_test.py", line 44, in upload
return imgur.upload_from_path(file_name)
File "C:\Program Files\Anaconda3\lib\site-packages\imgurpython\client.py", line 596, in upload_from_path
return self.make_request('POST', 'upload', data, anon)
File "C:\Program Files\Anaconda3\lib\site-packages\imgurpython\client.py", line 158, in make_request
raise ImgurClientError('JSON decoding of response failed.')
imgurpython.helpers.error.ImgurClientError: JSON decoding of response failed.
[Finished in 37.0s with exit code 1]
So I am trying to uplaod a gif using the
upload_from_path
function. This works for small gifs, but when I try to upload a larger one I get the following error:Reproduction code:
The text was updated successfully, but these errors were encountered: