Troubleshooting
Match CLI and HTTP errors to a credential, channel, file or upload session and retry the failed step.
On this page
Start with the failing command’s exact message. For scripts, read the exit status and stdout from --json. A command-wide failure contains an error object. An upload can instead return an array with an error against one or more files.
Credentials and channels
| Message | What to check |
|---|---|
No API key for https://api.pushbag.dev. Run `pushbag auth login` first. |
Run auth login to find the key page, then save a key with auth set. In CI check the job’s environment. |
That key was rejected by https://api.pushbag.dev. It may be revoked, malformed, or issued for another deployment. |
Check the target with config show. Create a fresh key on that deployment if needed. |
This credential cannot manage artifacts. |
The API received a valid credential without artifact access. Choose Artifacts for uploads or Both for uploads with notifications. |
This credential cannot publish to this channel. |
Verify the target ID and its publish grant. Leaving out the ID selects Personal. |
Anonymous publishes must name a channel. |
Send a credential to the personal endpoint or name a channel that allows public publishing. |
No readable channels. |
A publisher may lack history access. Ask the owner for the channel ID and test a publish directly. |
Channel not found. |
Check the ID and whether the channel was removed. |
pushbag config show --json
pushbag whoami --json
Compare the API host, profile and identity with those of the working terminal. A saved profile belongs to the OS user who ran auth set. An IDE or service may use another home directory. The environment key takes precedence over the profile.
Files and upload sessions
| Message | Recovery |
|---|---|
--artifact adds a version to one artifact, so it takes one file. |
Append one matching file at a time. Omit the ID to create distinct artifacts in a batch. |
Not uploaded, because another file failed its checks. |
Find the other entry’s error, correct that file and rerun local preflight. |
Upload --channel and --priority require --notify. |
Add --notify to send a message, or omit the notification options. |
Your plan does not include video artifacts. Upgrade to publish them. |
Check allowed kinds in plan limits. Reducing file size cannot change the kind. |
This upload session has expired. |
Initiate another session, transfer the bytes and finalize its new ID. |
Storage could not be reached to validate this upload. Retry. |
Retry completion against the same upload ID. |
The uploaded object was not found in storage. |
Verify the storage PUT succeeded. Start a fresh upload after a validation rejection. |
If a transfer fails after preflight, inspect every result before retrying. Files that already have URLs were published. See the upload protocol for the difference between storage errors, expired sessions and validation failures.
Invalid messages and retries
| Message | Recovery |
|---|---|
The body is not valid JSON. |
Check the request bytes and quoting. Use --data-binary @message.json with an application/json header. |
A JSON payload must be an object. |
Send an object with a nonblank message, or switch to text/plain for raw text. |
This idempotency key was already used for a different message on this channel. |
Reuse the original payload for a retry. Use a new key for a different message. |
Too many anonymous publishes to this channel. Slow down. |
Wait for the per-minute window before sending more anonymous messages. |
This channel's owner has reached their daily message limit. |
Wait for the owner’s daily allowance to reset. Switching channels under that owner shares the same allowance. |
When a send succeeds but the phone stays quiet, check the message in the dashboard first. A stored message and its receipt establish that publishing worked. Check device registration and channel settings using the Android guide or the iOS guide.
iPhone alerts
| Symptom | What to check |
|---|---|
| You denied notification permission. | In Pushbag, go to Settings → Notification permission → Open settings. In the iPhone’s settings, enable Allow Notifications for Pushbag. |
| Routine alerts appear late or only in a group. | Check whether a Focus is silencing Pushbag or Scheduled Summary is holding its notifications. Allow Pushbag in the active Focus or choose immediate delivery if you want those alerts as they arrive. |
| A low-priority message appears without a sound. | Priorities 1–2 use quiet delivery. To test a normal alert, send a message at priority 3 and check Pushbag’s sound setting on the iPhone. |
Apple’s guide to iPhone notification settings
Contact support
If none of this helps, email support@pushbag.dev with the channel name and the time you sent the notification.