Skip to content

Testing and troubleshooting

This page covers problems you meet when saving a provider, and problems that show up on attempts once leads are flowing.

Pingdex has no live test for providers. There is no button or endpoint that sends a sample lead to a buyer.

Validate configuration (and the validate_provider MCP tool) only checks that the configuration compiles. It never sends an HTTP request. It tells you that the structure is correct. It does not tell you:

  • whether the buyer’s URL is reachable,
  • whether your credentials are accepted,
  • whether the destination passes the outbound security rules,
  • whether the buyer will accept the fields you map, or
  • whether your response mapping matches what the buyer actually returns.

To check these, ask the buyer for a sandbox endpoint, then create a provider that points at it, enable it, assign it to a separate test campaign and submit a synthetic lead. Read the resulting attempts. Keep the provider off your live campaigns until you are happy with the results.

A save or validation that fails returns a validation error naming the path and the reason, in the form path: reason.

{
"errors": {
"integration": ["legs.0.request.fields: empty"]
}
}

Errors in headers and secrets are reported against headers and secrets. Nothing is saved when compilation fails.

Error Cause and fix
unknown key A key the object does not allow, for example a root key other than legs. Remove it.
legs: empty legs has no entries.
legs: commit leg must be last The final leg is not a commit. Reorder the legs.
legs: exactly one commit leg is required Add one commit leg, or remove the extra.
legs: at most one quote leg is permitted Remove the extra quote leg.
legs.N.name: name not allowed The name breaks ^[A-Za-z_][A-Za-z0-9_-]*$.
legs.N.name: too long Names can be at most 64 characters.
legs.N.name: duplicate Two legs share a name.
legs.N.request.method: must be POST Only POST is supported.
legs.N.request.url: must be a url The URL is empty, invalid or longer than 2,048 characters.
legs.N.request.url: scheme must be http or https Use an https URL.
legs.N.request.fields: empty A request needs at least one field.
...fields: destination path not allowed A destination is empty, has an empty segment, or has a segment made only of digits.
...fields: conflicting destination paths A destination is a parent of another. See Request mapping.
...fields: nested destination not allowed for form encoding Form bodies are flat. Remove the dot, or use json encoding.
...value: form encoding requires string values Form static values must be strings.
...source: path not allowed A field source must be lead.id, lead.external_id or payload.<path>.
...leg: must reference an earlier leg A response mapping names a leg that does not come before it.
...source: unknown extract name The earlier quote leg does not define that name in extract.
...response.accepted_values: missing or rejected_values: missing Provide both lists or neither on a quote. Commits always need both.
...rejected_values: overlaps accepted_values A value appears in both lists.
configuration.headers.<leg>: unknown leg headers names a leg that is not in the integration.
configuration.headers.<leg>.<name>: header not allowed The header is blocked, or its value contains a line break. See Authentication.
Persisted leg names cannot be renamed... You changed a saved leg’s name. Keep the name, or remove the leg and add a new one.

See Integration specification for the full rules.

A provider only works on a campaign whose routing strategy matches its shape.

Campaign strategy Provider must be
highest_bid Ping / post (a quote leg then a commit leg).
priority Direct post (a single commit leg).

You will see This integration is not compatible with an assigned campaign routing strategy. when you edit a provider that is already assigned to a campaign and the change would break the match, for example by adding a quote leg to a provider on a priority campaign. Assigning a mismatched provider to a campaign is rejected in the same way.

To fix it, either keep the provider’s shape, or remove the provider from the campaign first. See Assigning providers.

A provider that is enabled and assigned, but whose shape does not match, is simply not eligible, so a campaign with no matching providers fails leads with no_eligible_provider.

A lead attempt with status not_sent and the error missing_mapped_field means Pingdex tried to build the request, could not find a value for a field, and sent nothing.

Likely causes:

  • The lead payload does not contain the key your field mapping reads, or the value is null, an object or an array.
  • You mapped lead.external_id but the lead was submitted without one.
  • A secret mapping names a secret that is not stored on the provider.

Fixes:

  • Make the field required in the campaign’s lead schema, so leads without it are rejected at the door.
  • Mark the mapping "optional": true if the buyer does not need it.
  • Add the missing secret. Compare the names in secret_names with the names your integration uses.

missing_response_value is the related error for values extracted from a ping response that are missing or unusable. See Request mapping.

Both mean the provider did not bid, but they have different causes.

Error Meaning What to check
quote_rejected The buyer replied in a way you mapped as a decline: false at accepted, or a value in rejected_values. This is a normal commercial answer. Nothing to fix, unless the buyer says it should have accepted.
invalid_quote_response Pingdex could not understand the reply: the body was not a JSON object, accepted was not a boolean (with no lists configured) or matched neither list, or the bid was missing or not a valid amount. Compare the buyer’s real response with your accepted, bid and value lists.
http_unsuccessful The buyer returned a non-successful HTTP status. Check the URL, credentials and body. Redirects are not followed, so a 3xx also lands here.
connection_failed No response before the timeout, or the connection failed. Ask the buyer about availability and response times. The ping limit is 5 seconds.

The usual cause of invalid_quote_response is a mismatch of types. For example, the buyer returns "accepted": "true" (a string) but you left the default, which needs a real true. Fix it by listing the strings in accepted_values and rejected_values. See Response mapping.

If a lead shows delivered with a commercial status of rejected or unknown, the post reached the buyer but the buyer did not clearly accept it. unknown usually means your commit response mapping does not match the buyer’s reply: the accepted path is wrong, or the value is in neither list. See Response mapping.

response_too_large means the buyer’s response exceeded 1 MiB.

  • On a ping, the provider is dropped from the auction.
  • On a post, the attempt is indeterminate, because the buyer may have received the lead. Pingdex does not send it again.

Ask the buyer to return a small JSON body. Pingdex only reads a few values from it.

Secrets are not returned when you read a provider

Section titled “Secrets are not returned when you read a provider”

This is expected. Pingdex never returns header values or secret values, in the dashboard, the API or MCP. A provider read shows has_headers, header_leg_names and secret_names only. See safe snapshots.

  • To check which secrets exist, read secret_names.
  • To change a secret, send a new value for that name. Other stored secrets are kept.
  • To remove one, list it in clear_secret_names. Sending an empty string does not remove it.
  • To change a leg’s headers, send the full header object for that leg. To remove them, list the leg in clear_header_legs.

If you have lost a credential, ask the buyer for a new one and store it again.

Check the lead troubleshooting and general troubleshooting pages, and read the attempts for the lead in question.