{"record":{"id":"1849287a2e4b0035","repo":"sipeed/picoclaw","slug":"failed-to-listen-on-s-w","errorCode":null,"errorMessage":"failed to listen on %s: %w","messagePattern":"failed to listen on (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/maixcam/maixcam.go","lineNumber":64,"sourceCode":"\t)\n\n\treturn &MaixCamChannel{\n\t\tBaseChannel: base,\n\t\tconfig:      cfg,\n\t\tclients:     make(map[net.Conn]bool),\n\t}, nil\n}\n\nfunc (c *MaixCamChannel) Start(ctx context.Context) error {\n\tlogger.InfoC(\"maixcam\", \"Starting MaixCam channel server\")\n\n\tc.ctx, c.cancel = context.WithCancel(ctx)\n\n\taddr := fmt.Sprintf(\"%s:%d\", c.config.Host, c.config.Port)\n\tlistener, err := net.Listen(\"tcp\", addr)\n\tif err != nil {\n\t\tc.cancel()\n\t\treturn fmt.Errorf(\"failed to listen on %s: %w\", addr, err)\n\t}\n\n\tc.listener = listener\n\tc.SetRunning(true)\n\n\tlogger.InfoCF(\"maixcam\", \"MaixCam server listening\", map[string]any{\n\t\t\"host\": c.config.Host,\n\t\t\"port\": c.config.Port,\n\t})\n\n\tgo c.acceptConnections()\n\n\treturn nil\n}\n\nfunc (c *MaixCamChannel) acceptConnections() {\n\tlogger.DebugC(\"maixcam\", \"Starting connection acceptor\")\n","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/maixcam/maixcam.go#L46-L82","documentation":"Error \"failed to listen on %s: %w\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/maixcam/maixcam.go:64 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":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}