{"record":{"id":"01fb63c91a9190df","repo":"chenhg5/cc-connect","slug":"config-relay-timeout-secs-must-be-0","errorCode":null,"errorMessage":"config: relay.timeout_secs must be >= 0","messagePattern":"config: relay\\.timeout_secs must be >= 0","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"config/config.go","lineNumber":1016,"sourceCode":"func (c *Config) validatePermissive() error {\n\treturn c.validateInternal(true)\n}\n\nfunc (c *Config) validate() error {\n\treturn c.validateInternal(false)\n}\n\nfunc (c *Config) validateInternal(permissive bool) error {\n\tif err := validateDisplayConfig(\"display\", &c.Display); err != nil {\n\t\treturn err\n\t}\n\tswitch strings.ToLower(strings.TrimSpace(c.AttachmentSend)) {\n\tcase \"\", \"on\", \"off\":\n\tdefault:\n\t\treturn fmt.Errorf(\"config: attachment_send must be \\\"on\\\" or \\\"off\\\"\")\n\t}\n\tif c.Relay.TimeoutSecs != nil && *c.Relay.TimeoutSecs < 0 {\n\t\treturn fmt.Errorf(\"config: relay.timeout_secs must be >= 0\")\n\t}\n\tswitch strings.ToLower(strings.TrimSpace(c.Relay.Visibility)) {\n\tcase \"\", \"full\", \"summary\", \"none\":\n\tdefault:\n\t\treturn fmt.Errorf(\"config: relay.visibility must be \\\"full\\\", \\\"summary\\\", or \\\"none\\\"\")\n\t}\n\tif len(c.Projects) == 0 {\n\t\treturn fmt.Errorf(\"config: at least one [[projects]] entry is required\")\n\t}\n\tfor i, proj := range c.Projects {\n\t\tprefix := fmt.Sprintf(\"projects[%d]\", i)\n\t\tif proj.Name == \"\" {\n\t\t\treturn fmt.Errorf(\"config: %s.name is required\", prefix)\n\t\t}\n\t\tif proj.Agent.Type == \"\" {\n\t\t\treturn fmt.Errorf(\"config: %s.agent.type is required\", prefix)\n\t\t}\n\t\tif len(proj.Platforms) == 0 && !permissive {","sourceCodeStart":998,"sourceCodeEnd":1034,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/config/config.go#L998-L1034","documentation":"Configuration validation rejects a relay.timeout_secs value that is negative. It is a sentinel validation error in validateInternal: the faulting input is a config file (or override) with relay.timeout_secs < 0; only 0 (disabled) or a positive second count is accepted.","triggerScenarios":"Thrown at config/config.go:1016 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set relay.timeout_secs to 0 or a positive number of seconds","Remove the key to use the default timeout"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}