Instagram error 9007 with subcode 2207027 is “Media not ready for publishing”. The media is not ready for publishing; check the container status and publish once it is FINISHED. A publish that gets it stays unresolved with submission_uncertain. Checked 2026-12-05.
Exact error
error.code: 9007, error.error_subcode: 2207027; HTTP 400.
{
"error": {
"type": "OAuthException",
"code": 9007,
"error_subcode": 2207027
}
}Returned by POST /{ig-user-id}/media_publish.
Cause
media_publish ran before Meta finished processing the container, usually a video still transcoding. Callers that publish right after creating the container hit it.
Fix
Poll the container’s status_code and call media_publish only when it reads FINISHED. PubNio already polls every container before it publishes, so on a PubNio target it signals a container that regressed after the check.
Retry safety
Not blindly: the post may exist. Reconcile first and send again only if no post turned up.
PubNio issue
- On a publish:
submission_uncertain, statusunresolved. - With HTTP 401 or 403, the status alone settles it as an auth or permission rejection:
provider_rejected. - No adapter maps this code; this is the default.
Observed
Replayed through the adapter in packages/core/test/provider-error-catalog.test.ts.
Limits
Another Instagram endpoint can return 9007 for another reason.
Sources
- Instagram Platform error codes, checked 2026-12-05
- PubNio:
packages/core/src/integration/providers/instagram-publish.ts#writeRejected,packages/core/src/post/instagram-delivery.ts#stageInstagramContainer,packages/core/src/post/delivery-store.ts#settleSubmission