Skip to main content

Troubleshoot API Exposure

Start from what the caller receives.

Host name does not resolve​

The caller cannot find an address for the host name: the request never leaves it.

CauseCheckFix
The DNS record is not published yetdig <host>Wait for propagation; check the domain of the environment
The host name is not under a domain of the environmentThe host name of the API instanceUse a domain attached to the environment

Connection refused or timeout​

The name resolves but nothing answers on the port.

CauseCheckFix
Exposure mode does not match the callerInternal or Private gateway called from the internetExposure mode of the gateway
No access point on that portThe access points of the gatewayAdd the access point

TLS certificate error​

The connection opens but the client rejects the certificate presented by the gateway.

CauseCheckFix
The certificate does not cover the host nameopenssl s_client -connect <host>:443 -servername <host>A certificate whose SAN covers the name
Certificate expiredIts notAfter dateReplace the TLS Certificate configuration

404 from the gateway​

No route matches the host name and path. Check the host name of the API instance, the access point it is attached to, and the path sent.

401 or 403​

A rule of the security policy refused the request. See Tokens and sign-in for JWT; for an API key, check the header name and that the key is in the list; for IP rules, the source address seen by the gateway.

429​

The rate limit was reached.

503​

The gateway found the route but could not hand the request to a backend.

CauseCheckFix
No ready instance behind the routeThe integration in Runtime ManagerSee Builds and deployments
Wrong backend portThe port of the backend referenceThe port the service listens on
Circuit breaker openConcurrent requests against its capsCircuit breaker
Backend TLS validation failsUpstream TLS errorsBackend TLS

504​

The backend answered later than the request timeout. Compare the request duration at the gateway with the processing time of the route.

CORS preflight refused​

The origin, the method or a header is not allowed by the CORS rule. An OPTIONS preflight carries no credentials: it must pass before authentication.