Skip to documentation
/

Error handling

Error index

23 gateway codes · 3 SDK classes

Search documented error names, meanings and recovery steps. Descriptions summarize the contract; they are not raw provider messages or a list of every possible rejection.

26 of 26 entries shown

INVALID_API_KEY

Access

The API key is not accepted.

Next step Check that the active Game API key belongs to the intended workspace. Keep it in your server environment.

Gateway code

IP_NOT_ALLOWED

Access

The backend source IP is not authorized.

Next step Allow the actual backend egress IP in API Setup. Return origins and callback settings do not grant source-IP access.

Gateway code

SCOPE_DENIED

Access

The key cannot call this method.

Next step Review the method scopes on the Game API key before dispatching the request again.

Gateway code

SANDBOX_UPSTREAM_NOT_CONFIGURED

Access

A retired test-environment key was used.

Next step Use a live Game API key, including for eligible demo requests.

Gateway code

RESELLER_ENTITLEMENT_DENIED

Access

Inherited reseller access does not authorize this operation.

Next step Check the reseller term and inherited game/provider authorization.

Gateway code

CURRENCY_NOT_ALLOWED

Access

The workspace cannot use the requested currency.

Next step Check workspace currency restrictions and the currency-specific catalogue.

Gateway code

GAME_NOT_ALLOWED

Access

The requested game is outside workspace access.

Next step Check game/provider entitlement and use an exact identifier returned by the workspace catalogue.

Gateway code

RETURN_ORIGIN_NOT_ALLOWED

Access

A launch return origin is not approved.

Next step Allowlist the exact HTTPS origins of homeurl and cashierurl in API Setup. Include a non-default port, without a path.

Gateway code

CALLBACK_NOT_CONFIGURED

Access

Required wallet callback configuration is missing.

Next step Configure the HTTPS callback URL and its separate signing secret in API Setup.

Gateway code

ACTIVATION_REQUIRED

Access

The operation needs activation entitlement.

Next step Review the workspace activation status and the eligibility of the requested operation.

Gateway code

PRODUCTION_ACTIVATION_REQUIRED

Access

Funded play requires production activation.

Next step Confirm production activation before dispatching a funded session.

Gateway code

INSUFFICIENT_GGR_BALANCE

Access

The separate workspace GGR balance is insufficient.

Next step Fund the workspace GGR wallet. GGR funds are separate from player funds and activation payments.

Gateway code

STARTING_BALANCE_REQUIRED

Request

A funded launch needs an explicit starting balance.

Next step Supply a finite numeric balance for getGame and reserve the starting funds in your own wallet before dispatch.

Gateway code

IDEMPOTENCY_KEY_REQUIRED

Request

The mutation is missing its operation key.

Next step Persist one operation key and the exact request before dispatch, then send the required Idempotency-Key.

Gateway code

INVALID_IDEMPOTENCY_KEY

Request

The operation key does not meet the header rules.

Next step Use 8–255 printable ASCII characters without spaces. Preserve the identity of an already dispatched operation.

Gateway code

IDEMPOTENCY_NOT_SUPPORTED

Request

This method does not accept an operation key.

Next step Omit Idempotency-Key for reads and demos. The typed SDK rejects an idempotency key on those requests.

Gateway code

IDEMPOTENCY_CONFLICT

Recovery

The key belongs to a different request.

Next step Reconcile the original operation. Changed fields or player identify a different operation; do not overwrite the original request record.

Gateway code

REQUEST_IN_PROGRESS

Recovery

An identical operation is still being processed.

Next step Keep the original operation identity and reservation. Do not dispatch a new operation while the original outcome is pending.

Gateway code

UPSTREAM_APPLICATION_ERROR

Recovery

The provider returned a conclusive application rejection.

Next step Treat the command as rejected even when HTTP status is 200. Inspect the safe request ID and follow the wallet recovery workflow.

Gateway code

UPSTREAM_OUTCOME_UNKNOWN

Recovery

The provider outcome cannot be established.

Next step Keep funds reserved, retain the original key and exact request, and reconcile before another financial operation.

Gateway code

IDEMPOTENCY_OUTCOME_UNKNOWN

Recovery

The recorded operation has an unknown outcome.

Next step Inspect Request Logs and reconcile with support. A replacement key does not resolve the original operation.

Gateway code

IDEMPOTENCY_RESULT_UNAVAILABLE

Recovery

The prior result cannot be safely replayed.

Next step Inspect the original request and reconcile. Sensitive launch URLs may no longer be replayable.

Gateway code

IDEMPOTENCY_RESULT_EXPIRED

Recovery

The stored result is no longer available for replay.

Next step Keep the operation record and reconcile with support before releasing funds or launching again.

Gateway code

AggregatorValidationError

Request

The SDK rejects invalid local input before dispatch.

Next step Review parameter bounds, server runtime and operation options. Correct the input before sending a request.

SDK class

AggregatorApiError

Recovery

An unsuccessful HTTP response or nonzero numeric API error was returned.

Next step Inspect safe status, code, providerError, requestId and outcomeUnknown. Follow Retry-After when supplied, preserving mutation identity.

SDK class

AggregatorTransportError

Recovery

The request ended with network, timeout, aborted or invalid-response reason.

Next step Check outcomeUnknown. A timeout or cancellation after dispatch does not prove rollback; reconcile mutations before retrying.

SDK class

Error classes#

The SDK throws typed errors instead of returning unsuccessful command envelopes. HTTP 200 with a nonzero numeric error is still a command rejection. Successful commands require numeric error: 0.

ClassMeaningAvailable fields
AggregatorValidationErrorInvalid configuration or parameters, rejected before dispatchname, message
AggregatorApiErrorHTTP failure or command rejectionstatus, code, providerError, requestId, retryAfterSeconds, outcomeUnknown
AggregatorTransportErrorNetwork, timeout, cancellation or malformed responsereason, outcomeUnknown, status, requestId

Catch errors#

typescript example
.ts
import {  AggregatorApiError,  AggregatorTransportError,  AggregatorValidationError,} from '@aggregator-network/sdk'; try {  const catalogue = await client.getGameList({ currency: 'USD' });  // Use catalogue.response in your backend.} catch (error) {  if (error instanceof AggregatorValidationError) {    throw error; // Correct the configuration or input.  }  if (error instanceof AggregatorApiError) {    console.error({ status: error.status, code: error.code,      requestId: error.requestId, outcomeUnknown: error.outcomeUnknown });  } else if (error instanceof AggregatorTransportError) {    console.error({ reason: error.reason,      requestId: error.requestId, outcomeUnknown: error.outcomeUnknown });  } else {    throw error;  }}

Only the selected diagnostic fields are logged here. Keep API keys, callback secrets, request bodies and game launch URLs out of production logs. The SDK's errors omit raw response bodies and server-supplied messages.

Unknown mutation outcomes#

A request may reach the gateway or provider before a timeout, disconnect or cancellation. If outcomeUnknown is true, keep the persisted operation key, exact request and any wallet reservation. Reconcile the request before releasing funds or trying again.

The SDK makes no automatic retries. A new idempotency key describes a new operation and cannot resolve the outcome of an earlier one. A successful launch URL is sensitive and is not guaranteed to be replayable.

Gateway and provider errors#

AggregatorApiError.code contains a safe gateway code when available. providerError contains a positive numeric application error when available. requestId is a safe request identifier from the response. Some rejections use only a numeric application error; code may therefore be null.

retryAfterSeconds exposes a numeric Retry-After header when available. Respect it while preserving mutation identity. For detailed gateway error meanings, limits and recovery rules see validation.

Transport reasons#

reasonMeaning
networkFetch failed without an SDK-controlled timeout or cancellation.
timeoutClient or per-request timeout elapsed.
abortedCaller cancellation signal aborted the request.
invalid-responseRedirect, malformed JSON or an incompatible success envelope.

For game launch responses, the SDK requires the documented HTTPS URL without embedded credentials.

Was this page helpful?