Ask a local model why a request failed
A request returns 400 with {"error": "invalid_request"}. Or it doesn't return at all: "socket hang up". You know the drill: check the URL, the headers, the body, the token, the environment. Explain issue does the first pass of that drill for you, and with a model on your machine, nothing leaves it.
Use it
- Send the failing request, so the assistant has the response or the error.
- Open AI assistant on the right rail.
- Pick Local (or Cloud) at the top of the panel.
- Press Explain issue.
You get an explanation of the likely cause and concrete steps to fix it. Follow up in the box at the bottom: "Show me the curl command with the fix", or "Why would the server reject a date like that?".
What the model sees
The method, URL, headers, body, the error if the request couldn't be sent, and the response status and body. Before the prompt is built:
AuthorizationandCookieheaders are replaced with[redacted],- query parameters that look like tokens or keys are redacted,
- body lines with passwords, tokens or secrets are redacted.
The panel says which model answered, and the app's console lists what was redacted.
Where it helps most
- Validation errors with vague messages: the model compares the body with the error and spots the date in the wrong format or the field in the wrong case.
- Auth failures: it notices the bearer token is sent as
Bearer Bearer …, or the API key is in the query when the error mentions a header. - Content type mismatches: a JSON body with
Content-Type: text/plain, or a form body the server reads as JSON. - Network errors:
ECONNREFUSEDonlocalhostusually means the server isn't running, or the request goes out through the server instead of your machine.
Where it can't
It doesn't know your server's code or logs. If the explanation says "the server rejected the token" and you know the token is right, the next step is the server log, not a better prompt. For that kind of digging, a coding agent with your repository and the MCP server can read both the request and the handler.
Set up the local model
Settings → Profile → Local AI: runtime (LM Studio or Ollama), address and model, then Test connection. A 7B or 8B instruction model is enough for this kind of explanation. Details in the Local AI docs.