Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideIntegration & Security6 min read

WSO2 AI Gateway Troubleshooting: A Runbook for First Faults

Registration faults, provider errors, policies not applied and where to look

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: API Management & Integration
On this page
  1. Before you start
  2. Registration faults
  3. Provider errors
  4. Policy not applied
  5. Logs
  6. When to escalate
  7. A first engagement

Most first faults on a WSO2 AI Gateway fall into four groups: the gateway will not register, the model provider returns an error, a policy or guardrail does not apply, or you cannot find the log that explains it. Work through them in that order, because each group assumes the one before it is fine. This runbook gives the checks, the likely causes and what to record. It is general practice, not a replacement for the documentation for your release; log names and messages vary, so confirm them in a lab. The gateway is now named Choreo AI Gateway (formerly WSO2 AI Gateway) after Choreo Labs, formerly WSO2, renamed on November 17, 2026.

Before you start

Write down: the API Manager or AI Workspace release, where the gateway runs, the environment, the provider and model, the time of the failure and a request ID if you have one. Reproduce the fault with one request from a command line, not from the application. That removes the application as a variable.

Registration faults

The gateway must reach its control plane, and the control plane must accept it. Work through the network, then identity, then version.

CheckWhat to look forLikely fix
Network pathCan the gateway reach the control plane address and portOpen the route, check DNS, proxy and firewall rules
CertificatesExpired, wrong name or untrusted authorityRenew or import the chain, check the time on both sides
CredentialsRegistration token or key wrong, expired or for another environmentReissue and apply to the right environment
Version matchGateway and control plane releases that do not work togetherAlign releases per the documentation for your version
Environment or labelGateway registered under the wrong nameCorrect the label and re-register
ClockLarge time drift between hostsFix time sync

If an air-gapped design is in use, check that no step in the registration assumes an outbound call. See setup and registration for the decisions to make first.

Provider errors

Separate errors that come from the provider from errors the gateway raises. Read the status and the body.

SymptomLikely causeCheck
401 or 403 from the providerKey wrong, expired or for another projectRe-enter the key in the production and sandbox endpoints
404 or "model not found"Model name or deployment name wrongCompare with the provider's current list
429Provider quota or rate limitCheck the provider quota and your token limits
5xx or timeoutProvider outage or slow responseCheck the provider status page and your timeout settings
Works in sandbox, fails in productionDifferent key or endpointCompare Default Sandbox and Default Production endpoints
Works from your laptop, fails from the gatewayNetwork egress, proxy or private routeTest from the gateway host

The 4.6.0 guide says the key is set under API Configurations, in Endpoints, on the Default Production Endpoint and the Default Sandbox Endpoint. If you route between models, test each target on its own first. Custom providers need separate setup, as the documentation notes.

Policy not applied

A policy that "does nothing" is usually attached to the wrong thing or not deployed.

  1. Confirm the policy is attached to the API you are calling, not a sibling or an older version.
  2. Confirm the revision with the policy is deployed to the gateway you are calling.
  3. Confirm the release has the guardrail: guardrails came in 4.6, and 4.7.0 lists eleven.
  4. Send a case that must trip the rule. Use a clear one, such as a prompt far over a length limit.
  5. If it still passes, check for a higher-priority policy or an organisation-level rule that changes the outcome. The overview does not describe check order, so confirm in your lab.
  6. If it trips but the caller sees an odd message, record the response shape for your client team.

For model-based checks, repeat the same prompt several times; results can vary. A test set turns this from guesswork into a routine.

Logs

Read logs in this order and note timestamps.

WhereWhat it tells you
Your client or command lineWhat was sent and what came back
Gateway runtime logWhether the request arrived and which policy ran
Control plane or PublisherDeployment state of the API and revision
Provider dashboardWhether the call reached the provider and what it returned
Network devicesBlocks, resets and timeouts on the route
Your monitoringToken counts, latency and error rates over time

Where you have enabled analytics from the 4.7 release, check them for trends. Keep the failing request and the log lines together in one ticket, with the release and the time, because a fault you cannot reproduce is hard to hand to a vendor. For MCP traffic, see MCP proxies on WSO2 API Manager.

When to escalate

Escalate to the vendor or your support partner when you can reproduce the fault from the command line, you have the release, the time and the log lines, and the checks above have not found a cause. A clean report saves days. Include the failing request with secrets removed, the response, the policy attached to the API and the deployed revision.

A first engagement

Duczer East offers an AI gateway fit check and, for running estates, WSO2 support that covers production incidents and upgrades. We build the test set and runbook with your team so the first fault is a routine one. See WSO2 AI Gateway setup.

Related: WSO2 AI Gateway setup · WSO2 AI Gateway setup and registration · MCP proxies on WSO2 API Manager · Moving AI pilots to production on WSO2 · Guardrails and a test set

Frequently asked questions

Why is my AI API returning an error from the model provider?

Check the provider key in the Default Production Endpoint and the Default Sandbox Endpoint, the model name, the provider's quota and whether the call reaches the provider from your network.

Why is a guardrail not applying?

Common causes are a policy attached to a different API or revision, a revision that was not deployed to the gateway, or a release that does not include that guardrail. Check the release table and the API's deployed revision.

Where do I put the provider API key?

In the Publisher, open the API's Endpoints under API Configurations and edit the Default Production Endpoint and the Default Sandbox Endpoint.

Which release has guardrails?

Guardrails arrived in WSO2 API Manager 4.6, and the 4.7.0 documentation lists eleven.

Does this runbook replace the vendor documentation?

No. Steps and log names differ by release and deployment option. Use it to decide where to look, and confirm details in the documentation for your version.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote