{"record":{"id":"12052d91ab436b1a","repo":"googleapis/mcp-toolbox","slug":"unable-to-execute-sql-request-status-d-s","errorCode":null,"errorMessage":"unable to execute SQL request: status %d: %s","messagePattern":"unable to execute SQL request: status (.+?): (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/arcadedb/arcadedb.go","lineNumber":217,"sourceCode":"\treq, err := http.NewRequestWithContext(ctx, http.MethodPost, httpURL, bytes.NewReader(payload))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to create SQL request: %w\", err)\n\t}\n\treq.SetBasicAuth(s.User, s.Password)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := arcadeHTTPClient.Do(req)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to execute SQL request: %w\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\tbody, err := io.ReadAll(resp.Body)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to read SQL response: %w\", err)\n\t}\n\tif resp.StatusCode < 200 || resp.StatusCode >= 300 {\n\t\treturn nil, fmt.Errorf(\"unable to execute SQL request: status %d: %s\", resp.StatusCode, strings.TrimSpace(string(body)))\n\t}\n\n\tvar decoded map[string]any\n\tif err := json.Unmarshal(body, &decoded); err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to parse SQL response: %w\", err)\n\t}\n\n\tif strings.HasPrefix(strings.ToUpper(strings.TrimSpace(sqlStr)), \"EXPLAIN\") {\n\t\tresp := map[string]any{}\n\t\tif plan, ok := decoded[\"explainPlan\"]; ok {\n\t\t\tresp[\"executionPlan\"] = plan\n\t\t}\n\t\tif explainText, ok := decoded[\"explain\"]; ok {\n\t\t\tresp[\"executionPlanAsString\"] = explainText\n\t\t}\n\t\tif len(resp) > 0 {\n\t\t\treturn []map[string]any{resp}, nil\n\t\t}","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/arcadedb/arcadedb.go#L199-L235","documentation":"Error \"unable to execute SQL request: status %d: %s\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/arcadedb/arcadedb.go:217 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}