Errors

connector_text_too_long

400 – Too long for the platform. The text is longer than the platform takes.

Too long for the platform. Answered with 400.

What it means

The text is longer than the platform takes. Bluesky counts 300 graphemes; a Mastodon instance counts its own max_characters, a content warning included, and it counts a link as a flat 23 however long it is.

What to do

Shorten it. The detail names the count that was measured and the limit it was measured against.

The body

{
  "type": "https://tigby.eu/problems/connector_text_too_long",
  "title": "Too long for the platform",
  "status": 400,
  "detail": "…what was refused, naming this request's own values",
  "code": "connector_text_too_long",
  "doc_url": "https://docs.tigby.eu/errors/connector_text_too_long",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.