Skip to content
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

Oversize images #2

Open
davein2it opened this issue Sep 10, 2017 · 0 comments
Open

Oversize images #2

davein2it opened this issue Sep 10, 2017 · 0 comments

Comments

@davein2it
Copy link
Owner

When the blogpost contains an image that is too big

Twython Error message below -
http://phsstormt.blogspot.com/2017/03/5-places-to-visit-in-new-zealand.html
Traceback (most recent call last):
File "/home/pi/Documents/clustermodel/rsstotwitternew.py", line 126, in
go_tweet()
File "/home/pi/Documents/clustermodel/rsstotwitternew.py", line 45, in go_tweet
twitter.update_status(status = tweet, media_ids=response['media_id'])
File "/usr/local/lib/python3.4/dist-packages/twython/endpoints.py", line 112, in update_status
return self.post('statuses/update', params=params)
File "/usr/local/lib/python3.4/dist-packages/twython/api.py", line 268, in post
return self.request(endpoint, 'POST', params=params, version=version)
File "/usr/local/lib/python3.4/dist-packages/twython/api.py", line 258, in request
api_call=url)
File "/usr/local/lib/python3.4/dist-packages/twython/api.py", line 194, in _request
retry_after=response.headers.get('X-Rate-Limit-Reset'))
twython.exceptions.TwythonError: Twitter API returned a 400 (Bad Request), Image file size must be <= 3145728 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant