{"record":{"id":"668f3907c3013302","repo":"googleapis/mcp-toolbox","slug":"unable-to-parse-sql-response-w","errorCode":null,"errorMessage":"unable to parse SQL response: %w","messagePattern":"unable to parse SQL response: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/arcadedb/arcadedb.go","lineNumber":222,"sourceCode":"\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}\n\t}\n\n\tresult, ok := decoded[\"result\"]\n\tif !ok {\n\t\treturn []map[string]any{}, nil","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/arcadedb/arcadedb.go#L204-L240","documentation":"Error \"unable to parse SQL response: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/arcadedb/arcadedb.go:222 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"}