Why social media posts fail

Most failed posts have one of a few causes. A sign-in expired. A permission is missing. A limit was hit. The network refused a file. Or the network itself had a problem. Only two are worth a retry: a rate limit and a server error. For the rest, the same post fails again until someone fixes the cause.

On this page

What does each type of failure mean?

Find the type first: it tells you the cause, and the cause tells you what to do. The table has one row for each of the nine types in a Postsure receipt's error_category field. Each example is a reason Postsure's API gives, word for word.

Type and what it meansExample reasonDoes a retry help?What to do
authThe sign-in to the account no longer works. Its token expired or was taken back, or the account was suspended.This account must be reconnected.Any networkNo. Postsure renews the sign-in once, where the network allows it. After that, only a new sign-in helps.Reconnect the account, then retry that account.
permissionA right or an access the network needs is missing.Bluesky takes videos only from an account with a confirmed email address. Confirm the email in Bluesky.From BlueskyNo. The right is still missing.Give the right the reason names, then retry that account.
rate_limitedThe network limits how often this account or app can post, and the limit was hit.Bluesky is limiting how often this account can post.From BlueskyYes, after a wait. Postsure tries again by itself.Wait. If the post still failed, wait until the limit resets, then retry that account.
usage_capA posting cap on the network is used up, for example a daily video limit.This account reached Bluesky's daily video limit (too many videos uploaded today). The limit resets later.From BlueskyNo. It fails again until the cap resets.Wait until the cap resets, then retry that account.
content_policyThe network refused the content, for example the same text twice, or a text that is too long.X does not allow posting the same text twice.From XNo. The same post gets the same answer.Make a new post, with the text or the files changed as the reason says.
media_formatA file has a format, size or length the network does not take.A file of the post is too large for Bluesky. Send a smaller file.From BlueskyNo. The file is still the same.Make a new post, with the file changed as the reason says.
server_errorThe network had a problem on its side, or could not be reached. Nothing was posted.Bluesky had a problem.From BlueskyYes, after a short wait. Postsure tries again by itself.Wait. If the post still failed, wait a little, then retry that account.
unconfirmedThe post was sent, and the network did not answer. It may be live.We sent the post but did not get an answer from the network. Check the account before posting again.Any networkNo. Never before you check: a retry can post it twice.Look for the post on the account first. See the unconfirmed post.
unknownAny other error.Something went wrong on our side while posting.Any networkNo. Postsure does not retry an error it cannot name.Do what the reason says.

For the two types Postsure retries, the reason also says what comes next. It adds "We will try again at" and the time. When Postsure gives up, it adds "We stopped trying." See Why it failed in the docs.

Which failed posts should you retry?

Only two types: rate_limited and server_error. Both are about time, not about the post. A rate limit ends when the network's window resets. A problem on the network's side often passes. In both cases the post itself was fine and nothing was posted, so the same post can work on a later try.

Every other type is about the post or the account. A retry sends the same post with the same sign-in, so the network gives the same answer:

These retries do harm. On some networks, a failed call still counts toward a rate limit. And a retry hides the real cause from the person who can fix it.

For auth, one step comes first: Postsure renews the sign-in once, where the network allows it. If that fails, the account usually becomes needs_reconnect, and only a new sign-in helps.

When you do retry, wait first. Wait longer after each try, use the reset time when the network gives one, and stop after a few tries.

Why is an unconfirmed post the dangerous one?

An unconfirmed post was sent, but no answer came back. For example, the call timed out after the network got it. So the post may be live, or it may not. A retry is a guess. If the first try worked, the account now has the same post twice, and your user's followers see both.

That is why Postsure never retries an unconfirmed post by itself. Check first:

  1. Open the account on the network, and look for the post.
  2. If it is there, the post is live. Don't send it again. In Postsure, confirm it, so the receipt says published.
  3. If it is not there, retry that account only. In Postsure, the retry says you checked.

The status can still change once. If a late answer from the network gives the final result, the receipt becomes published or failed, and your webhook gets that event. See Unconfirmed posts and An unconfirmed account in the docs.

A timeout on your own call to Postsure is a different case. Send the same request again with the same Idempotency-Key. Postsure saves the post only once, so this never makes a second post (Retry a request safely).

How do you stop the next failure?

Check files before you send

Each network has its own rules for file types, sizes and video lengths. Check each file against the rules of every network in the post before you send it. Then a wrong file is an error you fix at once, not a failed post later. Postsure makes this check before it saves a post, and its message names the rule a file breaks (What each network takes).

Keep sign-ins fresh

If you handle sign-in tokens yourself, renew them before they run out. And watch for accounts that need a new sign-in. In Postsure, such an account gets the status needs_reconnect, and status_reason says how to fix it. You get the account.needs_reconnect webhook and an email. Ask your user to reconnect before the next scheduled post goes out (Reconnect an account).

Stay under limits

Space out posts to the same account, and spread big batches over time. When a network names a reset time, wait for it. Postsure can also stop a post before it is sent when your plan or a daily limit is reached.

Listen for failures

Don't check posts by hand. A webhook tells your code when a post fails, so it can tell the right person. Postsure sends a signed post.failed, post.partially_failed or post.unconfirmed event (Post events).

How does Postsure handle a failed post?

Postsure's social media API gives every failure a type. Every post has a receipt. For each account, it shows the live link. When the post did not go out, it shows the type and the reason in plain English (Receipts and retries).

Postsure retries only when that is safe:

WhenWhat Postsure does
The network is busy (rate limit)Tries again after 1 h, 2 h and 4 h, or at the network's own reset time.
The network fails and nothing was postedTries again after 1 min, 5 min and 15 min, or at the time the network names.
A day has passedStarts no try by itself more than 24 hours after the first try, or after a retry you asked for.
The post may be liveNo retry by itself. It becomes unconfirmed, and you check the account.

When a post fails, you get an email (unless you switch it off). If you add a webhook, it gets a signed event too. Postsure does not send a failed post again by itself. Fix what the reason names, then retry that account. When the text or a file must change, make a new post.

Failures on each network

Each network words its errors in its own way, and sets its own rules for files, text and posts. The docs list what each network takes in one post.

Frequently asked questions

Why did my scheduled post not publish?

Look at the reason on its receipt first. Common causes are a sign-in that stopped working after you scheduled the post, a file the network refused, or a limit. The reason names the cause and what to fix.

Should I retry a failed post?

Only when the post itself is fine. After a rate limit, a used-up cap or a server error, wait first. After an expired sign-in or a missing right, fix it first. Then retry that account only. When the text or a file must change, make a new post. Never retry an unconfirmed post before you check the account: it may be live already.

Why does a post fail on one network and work on another?

Each network has its own rules for file types and sizes, text length, how often an account can post, and what content it takes. A post that fits one network can break another network's rule. Each account also has its own sign-in, so one can stop working while the others still work.

How do I know if a post went live?

A post is live when the network gives back a link to it. A Postsure receipt shows that live link for each account, or the reason there is none. A webhook tells your code when a post is done, so you don't have to check by hand.

What does needs_reconnect mean?

The network refused the account, so the account cannot post until it is connected again. On most networks, the account's owner signs in again. In Postsure, status_reason says why and how to fix it, and after the reconnect the account keeps its posts and history.