A webhook or alert was never delivered
Each time a webhook fires, MockHub records a delivery. Open the project’s Webhooks tab and select Deliveries on the webhook. A delivery that did not arrive shows Failed, with the reason under Answer, such as:
Endpoint answered 404.When the webhook’s Deliveries list has no row for the event you expected, the webhook never fired; see No delivery appears.
An alert rule that calls a webhook address records its alerts the same way, under Deliveries on the rule in the project’s Alerts tab, and everything below applies to them. An email alert keeps no record. See An alert was never sent.
A delivery shows Failed
Section titled “A delivery shows Failed”Select Details on the delivery to see where it was sent, the headers and body as sent, and What came back.
| Answer | Cause | What to do |
|---|---|---|
Endpoint answered 404., or another status |
Your endpoint answered, but not with a 2xx. A redirect counts as a failure: MockHub never follows one |
Fix the endpoint, or change the webhook’s URL to the final address, then select Replay |
| No response, with a connection or timeout error | Your endpoint could not be reached, or took too long: MockHub gives up after 5 seconds without data, or 15 seconds in all | Make sure the endpoint is public and answers quickly; do slow work after answering. Then Replay |
Host "hooks.example.com" does not resolve to any address. |
The URL’s hostname does not exist | Correct the URL |
Host "hooks.example.com" resolves to 10.0.0.12, which is not a public address. |
The address is inside a private network, which MockHub never calls | Use a public address. To see what a webhook sends, point it at the project’s inbox; see Receive callbacks in the project inbox |
The webhook was disabled before the delivery could run. |
The webhook was paused between firing and sending | Start it again, then Replay |
This workspace cannot send to an address you choose until the owner confirms their email (ada@example.com). Resend the verification link from the profile screen, then try again., or … until one of its owners confirms their email (…) |
No Owner of the workspace has confirmed their email address. With several Owners, the message names each one’s address, and one confirming is enough | See Email unverified |
Daily webhook delivery quota exhausted. |
The workspace has used its daily or monthly delivery allowance. The message says “Daily” whichever of the two ran out | Wait for the allowance to reset, or ask an Owner to upgrade; the limits page lists the allowances |
Webhook execution or attempt allowance is unavailable. |
The plan no longer includes webhooks, or the workspace has used its daily allowance of attempts, retries included | Wait for the next day, UTC, or ask an Owner to upgrade |
This project is archived or exceeds the workspace active project allowance. |
The project does not run | See Other refusals from the same limits |
This workspace is suspended. |
The workspace is suspended over a billing problem | See Fix a failed payment |
This demo has ended. You can still read, export or claim it during the claim grace period. |
The demo’s hour is over | See My demo has expired |
The callback URL from {{request.body.callback_url}} is missing., … is not an absolute http(s) URL. or … names a host this webhook does not allow. |
The webhook sends to the address the request gives, and the request had no such field, a value that is not an http:// or https:// address, or a host not under Allowed hosts |
Send the address in the field the webhook reads, or add its host to Allowed hosts under Edit. A Replay after removing a host is refused |
This request's response was not captured for callbacks: it was served before this webhook read responses, or with a request too large to carry it. |
The body template reads the mock’s answer, which was not kept for this request | Send a new request to the mock; the request must be under 1 MiB |
The mock's response was 300000 bytes; a callback reads at most 262144. |
The template reads response.body and the answer is larger than 256 KiB |
Read one value with response.body.<path>, or answer with less |
The rendered payload exceeds the 262144 byte limit. |
The webhook’s body, once rendered, is larger than 256 KiB | Send less in the body template |
Callback request context exceeds the 1 MiB limit. |
The request that triggered the webhook is too large to hand to the body template | Trigger it with a smaller request |
| Answer | Cause | What to do |
|---|---|---|
The alert rule was paused before the delivery could run. |
The alert rule was paused between the alert and its sending | Start the rule again, then Replay |
Alerts are not part of this workspace's plan. |
The plan no longer includes alert rules | Ask an Owner to upgrade |
| Answer | Cause | What to do |
|---|---|---|
The rendered webhook body is not UTF-8 text, so it cannot be kept for retries and replays. |
The body template put bytes that are not text, such as a binary request body, into the body | Leave {{request.body}} out of the template, or trigger the webhook with a text body |
The value of {{request.body}} is not UTF-8 text, so a JSON body cannot carry it., or another placeholder named |
A placeholder inside a quoted JSON string read bytes that are not text | The same |
The last attempt never reported an outcome, and none is left to retry with. |
MockHub stopped while sending the third attempt, so it cannot tell whether the delivery arrived | Look for its X-MockHub-Delivery at your endpoint, and Replay it if it did not arrive |
A delivery that fails on a connection error, a timeout, a name that does not resolve, or a 408, 429 or 5xx answer is retried, and so is an attempt not sent because the workspace already had three outgoing requests under way: it shows Retrying with the time of the next attempt, and gives up after three attempts, the second 30 seconds after the first and the third five minutes after that. Every other failure is final at once. Replay sends the same body again as a new delivery; it needs the Editor role, and counts against the delivery allowance like any other.
A delivery that shows Succeeded reached an endpoint that answered 2xx. If your system still did not act on it, look there: for example, whether it verifies the signature with the current signing secret; see Verify webhook signatures. A delivery to the project’s own inbox succeeds even when Store request logs is off in the project’s settings, but then nothing is recorded to read.
No delivery appears
Section titled “No delivery appears”A webhook that does not fire leaves no row. Check how it is meant to fire:
Fired by hand
Section titled “Fired by hand”Send a test on the Deliveries page is unavailable while the webhook is paused, and says Start this webhook before firing it. It is also unavailable when the webhook sends to the address a request gives, and says it needs the trigger mock to be served. If it was refused with a message instead:
Webhook event allowance exhausted; no delivery was queued.the workspace has used its delivery allowance. Wait for it to reset, or see Plan limit.
When a mock is served
Section titled “When a mock is served”A webhook with a trigger fires when its mock answers a real request at the project’s address, after the delay you set. It does not fire when:
- the mock answered in Try it, which never reaches the project’s address;
- no mock answered: the request was forwarded to an upstream, posted to the inbox, or matched nothing. Request logs shows which mock answered each request;
- the project is in Record everything mode and forwarded the request, so no mock answered;
- the webhook is paused, or the project or workspace cannot run. These are skipped without a record. A fire the delivery allowance refuses shows under Deliveries as Failed with “Webhook event allowance exhausted. Nothing is sent until it resets, and only the first fire refused is recorded.”
On a schedule
Section titled “On a schedule”The webhook’s row on the Webhooks tab says when it fires next. A paused webhook does not fire, and a scheduled fire is skipped without a record when the project or workspace cannot run. A fire the delivery allowance refuses is recorded as Failed, once until the allowance resets. Fires missed while it was paused are not made up: when it starts again, the schedule starts over from that moment. A cron schedule is read in its own time zone, shown beside the expression on the row; an expression that fires at a different hour than you expected usually has the wrong zone.
A paused webhook shows Paused on its row. An Admin starts it again by turning on its switch, named Active and the webhook’s name. See Send webhooks from a project.
An alert was never sent
Section titled “An alert was never sent”An alert rule sends its email or webhook only when a check finds the rule broken. For a webhook rule, first select Deliveries on the rule in the project’s Alerts tab: an alert that was sent and did not arrive is there, with the reason under Answer, and A delivery shows Failed applies to it. When there is no row for it, or the rule sends email, the usual reasons are:
- The project had fewer than five requests in the rule’s window, so the rule could not fire.
- The rule fired a moment before and is waiting out its Stay quiet for period.
- Store request logs is off in the project’s settings, so no rule has requests to read.
- For a match-rate rule, Log requests no mock answered is off, so the match rate always reads 100%. The rule’s row then says Cannot fire.
- An earlier alert of the rule is still Pending or Retrying. The rule sends nothing new until that delivery ends.
- The workspace is a demo, which never sends alerts.
- The alerts’ sending allowance, as large as the plan’s webhook delivery allowance, is used up, or, for an email alert, the workspace already had three outgoing requests waiting for an answer. The rule tries again at the next check.
- The rule shows Email not sent: MockHub has stopped emailing the address because earlier mail to it bounced, was reported as spam or unsubscribed. The address’s own account can resume it; see Mail is not arriving.
The rule’s row shows Last fired once its email or its webhook delivery is queued, even if the delivery then fails, and a webhook rule whose newest delivery failed also shows Last delivery failed. See Get alerted when traffic changes.
Still stuck
Section titled “Still stuck”Report a problem with the project’s address, the webhook’s name and the time the delivery was sent or should have been.