Skip to content

fix: Added Error Handling and Polling to Instagram Poster#83

Merged
danielbusnz merged 15 commits into
masterfrom
fix/instagram-poster
Apr 21, 2026
Merged

fix: Added Error Handling and Polling to Instagram Poster#83
danielbusnz merged 15 commits into
masterfrom
fix/instagram-poster

Conversation

@danielbusnz

Copy link
Copy Markdown
Collaborator

Added Error Handling and a 10 second sleep function after creating the media container to wait for it to properly load, quality of images are bad when tested locally

try:
container_id = self._create_media_container(post)
# Instagram needs time to process the uploaded image before publishing.
# Publishing immediately returns "Media ID is not available" (error 9007).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg I've run into this in my career before and it's so annoying - good find!

@binamkayastha binamkayastha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM sorry for the delay here!

@danielbusnz danielbusnz merged commit 35451b4 into master Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants