Find a failed request
When a request fails and the error doesn’t say why, find it in traces to see which plugin or provider refused it. This topic shows you how to get the request’s ID from the response, find the request in traces, and share the ID with an admin if you can’t open traces yourself.
The gateway logs every request that reaches your configuration, but a trace exists only if the request was sampled and the data plane exports traces.
Prerequisites
Before you begin, make sure you have the following:
- A request that you already sent through a route.
- Access to Traces in the console. If you can’t see it, ask your admin to look up the request for you, as the last section describes.
Get the request ID
Every response, including errors, carries an X-Request-Id header. In cURL, add -i to print the response headers.
Find the request in traces
To find the request, do the following:
- In the console sidebar, select Traces to see requests for the current namespace. If you’re an admin, you can also select Admin and then Traces to see requests across your whole organization.
- Select a time range, and filter by Route, Connection, or Status.
- Select the row that matches your request, and open its span view.
On a route with a model router, you can also read the x-fabric-model response header to see which provider and model answered. To read the details of a trace, including plugin timing and the upstream attempt, see Inspect traces.
Ask an admin to look it up
If you can’t open Traces, send your admin the X-Request-Id value, the time you sent the request, and the route. They can find the trace and tell you why the request failed or what a plugin did to it.

