googleapis/mcp-toolbox · error
unable to parse SQL response: %w
Error message
unable to parse SQL response: %w
What it means
Error "unable to parse SQL response: %w" thrown in googleapis/mcp-toolbox.
Source
Thrown at internal/sources/arcadedb/arcadedb.go:222
req.Header.Set("Content-Type", "application/json")
resp, err := arcadeHTTPClient.Do(req)
if err != nil {
return nil, fmt.Errorf("unable to execute SQL request: %w", err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, fmt.Errorf("unable to read SQL response: %w", err)
}
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return nil, fmt.Errorf("unable to execute SQL request: status %d: %s", resp.StatusCode, strings.TrimSpace(string(body)))
}
var decoded map[string]any
if err := json.Unmarshal(body, &decoded); err != nil {
return nil, fmt.Errorf("unable to parse SQL response: %w", err)
}
if strings.HasPrefix(strings.ToUpper(strings.TrimSpace(sqlStr)), "EXPLAIN") {
resp := map[string]any{}
if plan, ok := decoded["explainPlan"]; ok {
resp["executionPlan"] = plan
}
if explainText, ok := decoded["explain"]; ok {
resp["executionPlanAsString"] = explainText
}
if len(resp) > 0 {
return []map[string]any{resp}, nil
}
}
result, ok := decoded["result"]
if !ok {
return []map[string]any{}, nilView on GitHub (pinned to 8cc6e09de2)
When it happens
Trigger: Thrown at internal/sources/arcadedb/arcadedb.go:222 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of googleapis/mcp-toolbox@8cc6e09de2 (2026-09-05).
Data as JSON: /api/errors/668f3907c3013302.
Report an issue: GitHub.