---
title: "Instagram error 9007 with subcode 2207027: Media not ready for publishing"
description: "Instagram error 9007 with subcode 2207027: Media not ready for publishing. The cause, the fix, whether a retry is safe, and the PubNio delivery issue it settles."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram error 9007 with subcode 2207027: Media not ready for publishing

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.

```json
{
  "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`, status `unresolved`.
- 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](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/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`

## Related

- [Instagram error codes](https://pubnio.com/docs/errors/instagram/)
- [Every provider error code](https://pubnio.com/docs/errors/providers/)

Source: https://pubnio.com/docs/errors/instagram/9007-2207027/index.mdx
