---
title: "X (Twitter) error codes"
description: "Troubleshooting X character limits, thread validation, OAuth 2.0 expiry, and pass-through API billing errors."
---

> 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.

# X (Twitter) error codes

X publishing delivers single text posts and multi-item threads over OAuth 2.0.
Direct X API create fees (`$0.015` standard post, `$0.200` post with URL) are
passed through at exact provider cost with `$0` markup.

## Common X errors

| Code / Symptom                                  | Retryable       | Cause                                                                           | How to fix                                                                                                     |
| ----------------------------------------------- | --------------- | ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `caption_too_long`                              | No              | A post or thread item exceeds X's 280-character limit.                          | Shorten the text or split the copy into multiple thread items.                                                 |
| `account_not_ready`                             | After reconnect | X OAuth 2.0 token expired or was revoked by the account owner.                  | Reconnect the X account in the PubNio workspace. Sibling targets on the same draft remain unaffected.          |
| `empty_content`                                 | No              | Blank text submitted to an X text/thread target.                                | Provide non-empty post text.                                                                                   |
| X duplicate post (`403`)                        | No              | X rejects identical post text submitted consecutively to the same account.      | Confirm whether an earlier attempt already published via `GET /api/v1/posts/{postId}` before sending new copy. |
| Prepaid balance insufficient for X pass-through | After top-up    | Workspace prepaid balance is below the X API create fee disclosed at preflight. | Add funds (`$5` minimum) in workspace billing, then retry the failed X target.                                 |

## Related

- [X Publishing API](https://pubnio.com/platforms/x)
- [PubNio Pricing (X pass-through rates)](https://pubnio.com/pricing)
- [All PubNio error codes](https://pubnio.com/docs/errors/)

Source: https://pubnio.com/docs/errors/x/index.mdx
