Troubleshooting: fix a refused request or a failed job
Find your symptom below: each section gives the cause, then the fix as numbered steps. Every BobaBanana API error carries a stable error.code and usually the field at fault in error.param; the full list is on Error codes.
At a glance
- First look at
error.code,error.paramanderror.message- Check your key
GET /v1/balance(free)- Check availability
GET /v1/status(free)- Check a job
GET /v1/jobs/{job_id}- Support
- quote the
X-Request-IDresponse header
401 on every call#
Cause: no key reached the API (missing_api_key), or the key is wrong or revoked (invalid_api_key).
- Print the header your code sends: it must be exactly
Authorization: Bearer bb_..., orX-API-Key: bb_.... - Check that the environment variable is set in the process that runs the code (
echo $BOBABANANA_API_KEY). - Check that the whole key was copied; keys are shown only once.
- Test the key alone:
curl https://bobabanana.com/api/v1/balance -H "Authorization: Bearer $BOBABANANA_API_KEY". - If the key was revoked, make a new one in Settings → API keys.
403 with error code 1010#
Cause: a plain-text 403 reading error code: 1010 comes from the site's edge protection, not from the API, which answers every HTTP client.
- Send a
User-Agentthat names your app, for examplemy-app/1.0, and retry once. - Check that the URL starts with
https://bobabanana.com/api/v1/orhttps://bobabanana.com/docs/. - If it persists, contact support with the time of the request.
403 workspace_suspended or link_expired#
workspace_suspended: the workspace that owns the key is suspended; contact support. No call works until it is active again.link_expired: a result link is old or invalid. Fetch the job again withGET /v1/jobs/{job_id}; it returns fresh links.
404 for a job I just made#
Cause: jobs are private to the key that made them, and deleted jobs stay gone.
- Use the same key that created the job; another key, even of the same workspace, gets
404 job_not_found. - Check the id: job ids start with
x_, upload ids withfile_. - If the job was deleted with
DELETE /v1/jobs/{job_id}, it cannot be shown again. 404 not_found(notjob_not_found) means the path is wrong: check it against the API reference.
402 insufficient_credits#
Cause: the workspace's available credits are less than the job's estimate. Nothing was held.
- Read
error.requiredanderror.available. - Check
GET /v1/balance:credits_heldshows what unfinished jobs hold; it comes back when they finish or are canceled. - Add credits in the studio under Credits, or make a smaller job (shorter, lower resolution, fewer steps).
- Next time, price the request first with
dry_run: true: itsenough_creditssays whether it would be accepted.
429 too many requests#
Cause: a limit was reached; error.code says which.
too_many_active_jobs: the key has 10 unfinished jobs (default). Wait for one, or cancel one.daily_limit_reached: the key used its 200 jobs (default) in the last 24 hours. Wait, or ask an owner to raise the limit.too_many_downloadsornetwork_busy: URL inputs are busy; retry afterRetry-After, or upload the files first.too_many_files: the workspace has 1000 live uploads; delete some withDELETE /v1/files/{file_id}.too_many_attempts: too many wrong keys from your address; stop, fix the key, and wait forRetry-After.- Always wait for the
Retry-Afterheader before retrying. See Limits.
400 or 422 invalid_request: which field?#
Cause: a field is wrong. 422 comes from reading the body (type, range, length); 400 from the rules between fields.
- Read
error.param: it names the field, for exampleduration_secondsorreference_images[1]. - Read
error.message: it says the rule, for example "At 720p a video is 10 seconds at most". - Check the field in the endpoint's reference page, which lists types, limits and defaults.
- Fix that field and send again. Do not retry the same body.
My URL input was refused#
Cause: URL inputs must be public https:// links that BobaBanana can download without signing in.
invalid_url: usehttps://, a host that exists, and a public address (not a local or private one).fetch_failed: the URL answered with an error; open it in a private browser window to check it. Signed links from other services often expire.fetch_timeout: downloads must finish within 30 seconds; use a faster host or upload the file.file_too_large: images up to 25 MB, audio up to 60 MB.- When in doubt, upload the file with
POST /v1/filesand send itsfile_id.
Voice sample rejected#
voice_consent_required: sendvoice_consent: truewith an uploaded sample, and only when the voice is yours or you have the speaker's explicit permission.invalid_voice_sample: the sample is too short or too long. Use 5 to 30 seconds of one person speaking clearly, with no music.invalid_audio: the file could not be read. Use WAV, MP3, M4A, OGG or FLAC.- For better clones, send the exact words spoken as
transcript.
The job failed#
Cause: a step could not be made. The job shows "status": "failed" and error.code render_failed.
- Read
error.messageanderror.steps: they name the step and why. - Change what the message points at: a clearer reference picture, a simpler motion, a shorter script.
- Create a new job; a failed job is final. Its undelivered steps cost nothing.
- If many jobs fail, check
GET /v1/statusfor what is available now.
No webhook arrived#
- Check the job:
GET /v1/jobs/{job_id}showswebhook.status,attemptsandlast_status(your server's HTTP status). - Your endpoint must be public
https://and answer any2xxwithin 10 seconds. - Each event gets up to 6 attempts, waiting 0 s, 10 s, 1 min, 5 min, 30 min, 2 h before each; after the last failure the status is
failed. - A job created without
webhook_urlhas no webhook (409 no_webhookon replay). - A revoked key's webhooks are not sent.
- Send it again with
POST /v1/jobs/{job_id}/webhook/replayonce the endpoint is fixed. See Webhooks.
The result link stopped working#
Cause: result links are signed and work for at least 24 hours.
- Fetch the job again with
GET /v1/jobs/{job_id}for fresh links. - If the job was deleted, its results are gone.
- Store results you want to keep on your side.
Frequently asked questions#
Where do I start when something fails?#
Read error.code and error.param in the response body. The code finds the row on Error codes, and the field tells you what to change. For a job that failed later, read error.message in GET /v1/jobs/{job_id}.
What should I send to support?#
The X-Request-ID header of the failing response, the time, the endpoint, and the job id if there is one. Never send your API key.
Why does the same request work in curl but not in my code?#
Compare the headers and the body your code sends with the curl command. Common causes are a missing Content-Type: application/json, a body sent as form data instead of JSON, or a key variable that is empty in that process.