Skip to Content
Docs

upstream_timeout

A service that the API called did not answer in time. Try again in a few seconds.

HTTP status: 502. Error type: api_error.

A service that the API called did not answer in time. Try again in a few seconds.

Example

{
  "error": {
    "type": "api_error",
    "code": "upstream_timeout",
    "message": "A service that the API called did not answer in time. Try again in a few seconds.",
    "doc_url": "https://docs.afffast.com/errors/upstream-timeout",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}

Causes

  • The API called another service for your request: an affiliate network or a receiver of a webhook. The service did not answer in time.
  • A time limit of the API itself gives request_timeout, not this code.

How to fix

  • Try again in a few seconds.
  • The API does not store this answer for an Idempotency-Key. Send the request again with the same key.
  • If the error stays, check the status of the network or of your receiver. Then contact support and send the request_id of the response.

On this page