{"record":{"id":"75f378afca66a7dc","repo":"googleapis/mcp-toolbox","slug":"invalid-querytimeout-q-w","errorCode":null,"errorMessage":"invalid queryTimeout %q: %w","messagePattern":"invalid queryTimeout %q: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/mindsdb/mindsdb.go","lineNumber":184,"sourceCode":"\t//nolint:all // Reassigned ctx\n\tctx, span := sources.InitConnectionSpan(ctx, tracer, SourceType, name)\n\tdefer span.End()\n\n\t// Configure the driver to connect to the database\n\tvar dsn string\n\tif pass == \"\" {\n\t\t// Connect without password\n\t\tdsn = fmt.Sprintf(\"%s@tcp(%s:%s)/%s?parseTime=true\", user, host, port, dbname)\n\t} else {\n\t\t// Connect with password\n\t\tdsn = fmt.Sprintf(\"%s:%s@tcp(%s:%s)/%s?parseTime=true\", user, pass, host, port, dbname)\n\t}\n\n\t// Add query timeout to DSN if specified\n\tif queryTimeout != \"\" {\n\t\ttimeout, err := time.ParseDuration(queryTimeout)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"invalid queryTimeout %q: %w\", queryTimeout, err)\n\t\t}\n\t\tdsn += \"&readTimeout=\" + timeout.String()\n\t}\n\n\t// Interact with the driver directly as you normally would\n\tpool, err := sql.Open(\"mysql\", dsn)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"sql.Open: %w\", err)\n\t}\n\treturn pool, nil\n}\n","sourceCodeStart":166,"sourceCodeEnd":196,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/mindsdb/mindsdb.go#L166-L196","documentation":"Error \"invalid queryTimeout %q: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/mindsdb/mindsdb.go:184 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"}