-
Notifications
You must be signed in to change notification settings - Fork 43
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
upload_file Error #55
Comments
I have the same issue today when I try to upload .jpg file.. UPD: |
You can use try and except block, like |
Issues python273#56 , python273#55 , python273#47 Fixed. Added New Exception. __init__ file improved.
File "/usr/local/lib/python3.8/site-packages/telegraph/upload.py", line 13, in upload_file
r = TelegraphApi().upload_file(f)
File "/usr/local/lib/python3.8/site-packages/telegraph/api.py", line 56, in upload_file
response = self.session.post(
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 975, in json
RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: