When a webhook delivery fails, the run's error tells you what went wrong and how far it got. A run that sends more than one batch adds the batch number and the total, and from the second batch on it adds that the earlier batches were delivered. So webhook returned HTTP 503 on batch 4 of 6; earlier batches were delivered means your endpoint accepted batches 1 to 3, answered batch 4 with a 503, and never saw batches 5 and 6. A delivery error with no batch part comes from a run with a single batch, so nothing was counted as delivered, or from host not allowed, which stops the run before any batch is sent.
Reading the batch part of a message
etlmcp splits a run's rows into batches and posts them one after another, in order, and it stops at the first batch that fails. It never skips ahead. The message is built from three pieces:
- the cause, such as
webhook returned HTTP {…}; on batch {…} of {…}, added only when the run has two or more batches;earlier batches were delivered, added only when the failing batch is not the first.
A batch counts as delivered when your endpoint answered it with a 2xx status. etlmcp reads only the status and closes the response without reading its body, so anything your endpoint writes in the body is never shown in the error.
Each request body also says which batch it is and how many the run has, in the fields batch and batches next to rows, so your receiver can log the same numbers and match them against the error.
Errors while a run delivers
| Message | What happened | Retried |
|---|---|---|
webhook returned HTTP {…} |
Your endpoint answered with a status outside 2xx and 3xx. | Yes for 429 and any 5xx; no for any other status, such as 400, 401, 403 or 404 |
webhook redirected |
Your endpoint answered with a 3xx. etlmcp does not follow redirects. | No |
webhook timed out |
A batch got no complete answer in time. | Yes |
webhook request failed: {…} |
The request could not be completed, for example the connection was refused or the TLS handshake failed. The rest of the message is the first line of the HTTP library's own error, with your header values replaced by ***. |
Yes for a network failure, such as a refused, dropped or stalled connection |
host not allowed |
The URL's host could not be resolved, one of the addresses it resolves to is not public, such as a private network or localhost, or it is a numeric address in an unusual form. | No |
For webhook redirected, put the final address in the destination: check whether the address you saved differs from the one your endpoint expects, for example in a trailing slash or a www. prefix. For a 401 or 403, check the headers you saved with the destination. For host not allowed, the endpoint must be reachable on the public internet under a name that resolves.
A timeout does not prove your endpoint ignored the batch: it may have received and stored it, then answered too late. Treat a timed-out batch as possibly delivered. A request that stalls can also end as webhook request failed: {…} with the HTTP library's own timeout message.
What a retry sends
An error that can pass, such as a 503, a 429, a timeout or a refused connection, is not final. etlmcp runs the whole sync again, up to 3 attempts in all, with the waits described in Retries and how long etlmcp waits. Each new attempt delivers from batch 1, so your endpoint receives the batches it already accepted a second time. Build your receiver so that a repeated row replaces the earlier copy, for example by keying rows on the date, the network and the account, campaign, ad group and ad ids.
Once the attempts run out, or straight away for an error that cannot pass, the run ends as partial: the rows were fetched and stored, and the delivery failed. Run statuses explains how the next scheduled sync covers days that never reached your endpoint.
When a worker is being stopped, a run that has not started delivering yet goes back to the queue. A webhook delivery is never handed back once it has started, because sending it again would repeat batches. If the worker is killed during that delivery, the run is later marked failed with worker stopped during sync, and some batches may already have arrived.
Errors when you save the destination
These come back when you save, before anything is sent, and the destination is not saved:
{…} field(s) required: {…}, which readsconfig field(s) required: urlwhen the URL field is left empty.url is required,url is not valid,url has no hostandwebhook host is not valid: the address is blank, not text, or cannot be read.url must start with https://: etlmcp posts only over HTTPS, so a plain HTTP address is refused.url must not contain credentials: a user name or password inside the URL is refused. Put credentials in a header instead, such asAuthorization, which etlmcp stores encrypted.header {…} cannot be set: etlmcp refusesHost,Content-Length,Content-TypeandTransfer-Encoding, because it controls how each request is addressed and framed.header names must be valid HTTP tokensandheader values must be single-line ASCII text: a header name has a space or another character outside the set etlmcp accepts, or a value has a line break or non-ASCII text.
If you change the URL to a different host or port without entering the headers again, the save is refused with enter the secret again: the saved one is only ever sent to the server it was saved for. Why etlmcp asks for the password again when you change a host covers that rule.
Testing the destination
The destination test posts one sample row as a single batch, with the extra header X-Etlmcp-Test: 1, so your receiver can recognise it and discard it. It shows the same messages as a run, without a batch part. A test that passes reports that the webhook accepted a sample row.