googleapis/mcp-toolbox · error
unable to execute SQL request: status %d: %s
Error message
unable to execute SQL request: status %d: %s
What it means
Error "unable to execute SQL request: status %d: %s" thrown in googleapis/mcp-toolbox.
Source
Thrown at internal/sources/arcadedb/arcadedb.go:217
req, err := http.NewRequestWithContext(ctx, http.MethodPost, httpURL, bytes.NewReader(payload))
if err != nil {
return nil, fmt.Errorf("unable to create SQL request: %w", err)
}
req.SetBasicAuth(s.User, s.Password)
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
}View on GitHub (pinned to 8cc6e09de2)
When it happens
Trigger: Thrown at internal/sources/arcadedb/arcadedb.go:217 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of googleapis/mcp-toolbox@8cc6e09de2 (2026-09-05).
Data as JSON: /api/errors/12052d91ab436b1a.
Report an issue: GitHub.