{"record":{"id":"599572375f997675","repo":"googleapis/mcp-toolbox","slug":"unable-to-create-sql-request-w","errorCode":null,"errorMessage":"unable to create SQL request: %w","messagePattern":"unable to create SQL request: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/arcadedb/arcadedb.go","lineNumber":201,"sourceCode":"\t\treturn nil, err\n\t}\n\n\trequestBody := map[string]any{\n\t\t\"language\": \"sql\",\n\t\t\"command\":  sqlStr,\n\t}\n\tif params != nil {\n\t\trequestBody[\"params\"] = params\n\t}\n\n\tpayload, err := json.Marshal(requestBody)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to serialize SQL request: %w\", err)\n\t}\n\n\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","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/arcadedb/arcadedb.go#L183-L219","documentation":"Error \"unable to create SQL request: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/arcadedb/arcadedb.go:201 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"}