Skip to content

Troubleshooting and FAQ

Find your symptom, then the cause and the fix. For a failed run, start with its explanation: the red box on the run says what happened and what to do (failure explanations). To work through a failed run step by step, see Debug a failed run. Every API error code is on API errors.

API requests

The API returns a 302 redirect or an HTML page

Cause: you called one of the original endpoints (POST /api/jobs or POST /api/crons), the request failed validation, and it didn’t send Accept: application/json. Without that header, those endpoints answer validation errors with a redirect instead of an error message. The v1 API always answers in JSON.

Fix: send -H "Accept: application/json", or move to /api/v1. You then get a 422 that names each bad field.

A 422 says a field is required, but you sent it

Cause: the body wasn’t read as JSON, usually because Content-Type: application/json is missing. curl -d sends form data unless you set the header.

Fix: add -H "Content-Type: application/json" and check that the body is valid JSON.

401: missing or invalid token

Cause: with no Authorization: Bearer ... header, v1 answers missing_token and the original endpoints “Missing authorization token”. A token that doesn’t match gets invalid_token or “Invalid webhook token”: it was mistyped, the team token was revoked, the personal token was regenerated, or the person who created the team token left the team. (“Webhook token” is an old name for the API token.)

Fix: check the token under Settings > API tokens, or create a new one, and send it as Authorization: Bearer $DELAY_TOKEN.

403: the token can only read

Cause: the team token has Read only access, and the request would create, change, run or delete something (read_only_token).

Fix: use a token with Full access. Create one under Settings > API tokens.

422: Unknown field

Cause: the v1 API rejects fields it doesn’t know, instead of ignoring them. The message usually says what to send instead, for example “Unknown field “alert_threshold”. In the v1 API this is called alert_after_failures.”

Fix: rename or remove the field. The fields each endpoint takes are on Crons and Jobs.

You get a 422 although the token is wrong

Cause: the original endpoints validate the body before they check the token. (The v1 API checks the token first.)

Fix: fix the body first. Once the body is valid, a bad token shows up as a 401.

429 Too many requests

Cause: the v1 API allows 120 requests per minute per token, and 10 test requests per minute (rate_limited). The original endpoints allow 60 requests per minute per IP address, shared by POST /api/jobs, POST /api/crons and everything else that calls them from that address. Rejected requests count too.

Fix: wait the number of seconds in the Retry-After header, then send the rest one after another. See rate limits.

The job or cron was created in the wrong team

Cause: you used a personal token. It acts on the team you have selected in the dashboard at the moment of the call, not on a fixed team. If the team you had selected was deleted, Delay switched you to another of your teams (your personal team first).

Fix: use a team token for scripts and CI: it always acts on the team it was created in. Crons and jobs can’t be moved between teams, so delete the copy in the wrong team.

403 Your account doesn’t belong to any team

Cause: you aren’t a member of any team, for example because your only team was deleted or you were removed from it. If you still belong to another team, Delay switches you to it instead and you don’t see this error.

Fix: sign in to the dashboard and create a team (Delay opens Create team for you), or ask a team admin to invite you. Your next API call goes to that team.

Crons

The cron runs at the wrong hour

Cause: the expression is read in the cron’s timezone, and that isn’t the one you meant. Crons created with the API without timezone, and crons created before timezones existed, use UTC.

Fix: open the cron, click Edit and set Timezone, or send timezone with PATCH /api/v1/crons/{id}. Then write the expression in local time: 0 9 * * * with America/New_York runs at 09:00 New York time all year, daylight saving included. The cron’s page lists its next runs in its timezone. See timezones.

The cron didn’t run

Open the cron and check, in this order:

  1. Status: a paused cron doesn’t run. Click Start on the cron’s page.
  2. Next runs: if the next one is in the future, the cron hasn’t come due yet. They’re listed in the cron’s timezone, shown next to the heading.
  3. Recent runs: if runs are listed, the cron is running but failing. Read the explanation at the top of the page, or click View all and expand a run to see the response or error.
  4. Monthly limit: if runs fail with “Monthly limit reached”, the team has used up its monthly requests. See below.

Runs of the same cron overlap

Cause: Delay starts each run on time, even if the previous one is still waiting for your endpoint. A run that takes longer than the interval overlaps with the next.

Fix: keep the cron’s Request timeout shorter than its interval, and make the endpoint safe to run twice (idempotency).

Failed runs

The run fails because your endpoint redirects

Cause: Delay doesn’t follow redirects. A 301, 302, 307 or 308 counts as a failure (failure reason “Unknown error”), and job attempts are retried. The run’s explanation names the address it redirects to.

Fix: use the final URL. curl -sI https://api.yourapp.com/health shows the Location your server redirects to. Common culprits: http instead of https, a missing www, or a missing or extra trailing slash.

URL resolves to a blocked IP address, or Cannot resolve host

Cause: Delay only calls public addresses. It refuses hostnames that resolve to private or reserved addresses such as 127.0.0.1, 10.x.x.x, 172.16.x.x to 172.31.x.x, 192.168.x.x or 169.254.x.x. “Cannot resolve host” means the hostname has no public IPv4 address: a typo, missing DNS records, or a host that only has IPv6. Delay checks this when the request is sent, so creating the job or cron works and the run fails.

Fix: use a public hostname. To test against your laptop, expose it through a tunnel service that gives you a public HTTPS URL.

An assertion fails although the response looks right

Cause: usually one of these:

  • JSON path equals needs the value as JSON writes it, without quotes around strings: status=ok, healthy=true. A field that isn’t in the response always fails.
  • Body contains is case-sensitive and exact.
  • Response time under (ms) must be strictly less than the value.
  • Assertions only run on 2xx responses. A 404 fails as a 4xx, whatever your assertions say.

Fix: expand the run and compare the error (Assertion failed: ...) with the response body. Details: success assertions.

The run times out

Cause: your endpoint didn’t answer within the request timeout (30 seconds by default, up to 300).

Fix: reply first and do slow work in the background, or raise Request timeout on the cron or queue. See endpoint design.

Your endpoint got the same job more than once

Cause: Delay retries a job attempt after any failure: 4xx, 5xx, redirects, timeouts and failed assertions. After a timeout, your endpoint may have finished the work anyway. Each retry is a new job with a new ID, and Delay sends no idempotency header.

Fix: make the endpoint safe to call twice, for example with your own ID in the payload. If a job must never repeat, turn off retries on its queue. See retry strategy.

A job stays Pending

Cause: its queue is paused, or its scheduled time hasn’t come yet. Jobs with a delay of more than 60 seconds can start up to about a minute after their scheduled time.

Fix: check the queue’s status on Queues. A paused queue holds its jobs until you tick Enable this queue again. See queues.

Usage limit

Runs fail with Monthly limit reached

Cause: the team used all its requests for this calendar month (1,000 requests a month on the free plan). Until the next month starts (in UTC) or you upgrade, no requests are sent:

  • jobs fail without retries, dead letters, callbacks or alerts;
  • crons stay on schedule and record a failed run each time they come due;
  • the API still accepts new jobs and crons with a 201 (the v1 API adds a warning saying so).

Fix: the team owner can upgrade from the team page under Billing > Manage billing. Or run crons less often, or wait for the next month. See how usage is counted.

Signatures

Signature verification fails

Cause: most often your code verifies a parsed and re-encoded body instead of the raw bytes, uses the secret of another team, or uses a secret that was regenerated. Requests without a body are signed over an empty string.

Fix: go through if verification fails.

Requests arrive without X-Delay-Signature

Cause: the team has no signing secret yet, or the request isn’t from Delay. Slack and Discord alert posts are never signed.

Fix: a team admin generates one under Settings > Webhook signing. See verify requests from Delay.

Alerts

Cron alerts don’t arrive by email

Cause: cron Failure and Recovery alerts are emailed only when the team channel is Email. With Slack or Discord they go to the webhook instead. Cron warnings (the first failure below a threshold of 2 or 3) are never emailed.

Fix: check the Notification channel under Settings > Notifications. If it’s Email, wait for the streak to reach the cron’s threshold, and look in your spam folder. See Set up alerts.

No alert arrived at all

Check these in order:

  1. Cron: is Failure alerting set? It’s Disabled by default, including for crons created through the API without alert_after_failures (or alert_threshold on the original endpoint).
  2. Threshold: with 2 or 3, the first failure only raises a warning. The Failure comes when the streak reaches the threshold.
  3. Already alerted: a cron raises one Failure per streak and stays quiet until a run succeeds.
  4. Queue: is Alert on failed jobs ticked on the queue?
  5. Maintenance: an active window on the Maintenance tab mutes notifications. The alert is still on the Alerts tab.
  6. Channel: click Send Test Notification under Settings > Notifications. “Test notification sent successfully.” means Slack or Discord accepted it. An error such as “Failed to send test notification: Slack responded with HTTP 404.” means the webhook URL is wrong or was revoked: paste a new one and save.
  7. Usage limit: runs blocked by the monthly limit raise no alerts.
  8. Email: look in your spam folder.

Too many alert emails

Cause: queue job alerts are per job: a warning when the first attempt fails and a failure when the job is dead-lettered, each emailed to every team member.

Fix: untick Alert on failed jobs on busy queues and watch Dead letters instead, or mute planned work with a maintenance window. More in avoid alert noise.

The usage warning didn’t reach Slack, Discord or email

Cause: the usage limit warning is shown in the app only, on the Alerts tab.

Fix: check the Usage tab now and then.

Teams

You joined a team but don’t see its crons

Cause: joining doesn’t switch you to the new team.

Fix: click the team name in the header and pick the team under Switch team.

You can’t open Webhook signing or save Notifications

Cause: both are for team admins. Billing is for the team owner.

Fix: ask an admin to change your role or make the change. See roles.

An invitation has already been sent to this email

Cause: the address has an invitation that hasn’t expired yet. Invitations can’t be resent. An expired invitation doesn’t block a new one: inviting the address again replaces it.

Fix: delete it under Pending invitations on the team page and invite the person again.

Cause: the message after signing in says why. “This invitation was sent to a different email address.” means you signed in with another account than the invited one. “This invitation has expired.” means it’s older than 7 days.

Fix: sign in with the invited address and open the link again, or ask a team admin to invite you again.

FAQ

Which HTTP methods can Delay send?

GET, POST, PUT, PATCH and DELETE, in uppercase. Jobs default to POST and crons to GET.

How far ahead can I schedule a job?

Up to 365 days. delay is at most 31,536,000 seconds, and run_at at most 365 days from now. The original POST /api/jobs still stops at 24 hours, so use POST /api/v1/jobs for anything later. For recurring work, use a cron.

Can a cron run every few seconds?

No. Cron expressions have five fields, so the shortest interval is one minute (* * * * *).

Do failed cron runs retry?

No. The cron runs again at its next scheduled time. If you need retries, send the work as a queue job.

Can I list, update or delete jobs and crons with the API?

Yes, with the v1 API: list, read, change, pause, resume, run and delete crons, and list, read and cancel jobs. See Crons and Jobs. Queue settings, alert channels, dead letters and teams are still managed in the dashboard.

Is there an SDK?

No. The API is JSON over HTTPS, so any HTTP client works, and its OpenAPI description is at https://app.delay.run/api/v1/openapi.json. Examples: API overview.

Can an AI agent manage my crons?

Yes. Connect Claude Code, Claude Desktop, Cursor or another MCP client with a team token, and it can create, check and fix crons and jobs. See Use Delay from AI agents.

Which IP addresses does Delay send requests from?

Delay doesn’t publish a list. To make sure a request came from Delay, verify its signature.

How long is run history kept?

Run history is kept. Dead-lettered jobs are the exception: Delay deletes them after their queue’s Dead letter retention (14 days by default). See dead letters.

Next steps