Troubleshooting
What to check when a message does not arrive, a retry misbehaves or the stream goes quiet
Find what you see, then follow its steps. Most answers come down to reading the command's result on the stream.
A 202 means queued, not delivered.
- Find the
commandevent with thecommandIdfrom the202. - If it says
failed, readfailureClass. See Results and delivery. - If it says
succeeded, the channel took the message. Whether it reached the phone is a receipt, on a stream opened with?events=receipts. - If you sent to an address, check before you send that the person can get messages on that channel.
Which receipts follow depends on the channel:
| Channel | Receipts after succeeded |
|---|---|
| iMessage | Delivered and read |
| Delivered and read |
Your own messages never arrive as incoming messages. What arrives is a command
event with the send's result.
- Open the stream before you send.
- If you missed the result, reconnect with
Last-Event-IDset to anidfrom before the send. - If there is still nothing after a few minutes, treat the send as unknown, and
ask support with its
commandId.
The person last wrote more than 24 hours ago, or never. Send an approved template. Once they reply, write freely again.
The command named something the line no longer sees.
- A reaction to an old message: react to a recent one instead.
- A command to a group right after someone joined or left: wait for the group's
next message, then send again with a new
Idempotency-Key. See Groups.
An id from another project answers exactly like one that does not exist.
- Check that the id came from your own events, not from a log or another project.
- Check that it is
conversationId, not the message'sexternalId.
That is normal. Reconnect in a loop, with Last-Event-ID set to the last id
you handled, and wait a few seconds between connects: each key may connect 10
times a minute. A stream that ends with an error event means your key or
project stopped working, and reconnecting will not help.
Reconnect with Last-Event-ID set to the last id you finished handling. The
stream sends everything after it, up to 90 days back. Without it, the stream
starts from now. Save the id somewhere that survives a restart.
That can happen after a reconnect, and with webhooks. Handle each event once,
by its id.
On some iMessage lines, on older software, a message with no text and no attachment means the chat background changed. Skip a received message that has no text and no attachment rather than reply to it.
The retry did not carry the first attempt's Idempotency-Key. Use one key per
piece of work, and the same key on every attempt. See Retries.
The key belonged to a command that already had a result, so the 202 says
repeated: true and nothing new was sent. To send again after a result you have
seen, use a new key. See Retries.
- Wait the number of seconds in
retry-after, then send again. - If the stream is the cause, hold one stream open instead of reconnecting often.
- If commands are the cause, remember every key in a project shares one limit. Rate limits says how to ask for more.
Your request is fine; the project cannot send right now.
no_line: connect a line in the console.capacity_exhausted: every line is full. Connect another line.line_unavailable: the line is paused, retired or offline. Its page in the console shows why.- Wait, then send again with the same
Idempotency-Key. If it lasts more than a few minutes, ask support.
Mapier is busy, and nothing was done. Wait the seconds in retry-after, then
send the same request again.
Photos from iPhones are often HEIC, and Mapier does not convert them. Convert the file after you download it. See Incoming messages.
Still stuck
- Find the command's result. A command with no result and one that
failedneed different answers. - Check the line can send this at all: Channel support lists what each channel carries.
- Ask support with the
commandId, theIdempotency-Keyand the full result.