{"record":{"id":"0655d37b1a1d29f0","repo":"googleapis/mcp-toolbox","slug":"unable-to-serialize-sql-request-w","errorCode":null,"errorMessage":"unable to serialize SQL request: %w","messagePattern":"unable to serialize SQL request: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/arcadedb/arcadedb.go","lineNumber":196,"sourceCode":"\tif readOnly {\n\t\tendpoint = \"query\"\n\t}\n\thttpURL, err := s.arcadeHTTPEndpointURL(endpoint)\n\tif err != nil {\n\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)","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/arcadedb/arcadedb.go#L178-L214","documentation":"Error \"unable to serialize SQL request: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/arcadedb/arcadedb.go:196 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"}