freelawproject / bigcases2

The sequel to Big Cases Bot
Other
16 stars 12 forks source link

KeyError: 'media_id' while posting images to twitter #423

Open sentry-io[bot] opened 11 months ago

sentry-io[bot] commented 11 months ago

Sentry Issue: BIGCASES2-2R

KeyError: 'media_id'
(2 additional frame(s) were not displayed)
...
  File "bc/subscription/tasks.py", line 379, in make_post_for_webhook_event
    api_post_id = api.add_status(message, image, files)
  File "bc/channel/utils/connectors/twitter.py", line 78, in add_status
    media_id = self.upload_media(
  File "bc/channel/utils/connectors/twitter.py", line 37, in upload_media
    media_id = media_response.json()["media_id"]
mlissner commented 11 months ago

This looks like it might have been a twitter outage or us going over our access limit?