{"record":{"id":"517760d7d81b2dfb","repo":"larksuite/cli","slug":"bus-did-not-become-ready-within-v","errorCode":null,"errorMessage":"bus did not become ready within %v","messagePattern":"bus did not become ready within (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/event/consume/startup.go","lineNumber":164,"sourceCode":"\tcmd.Stdin = nil\n\tcmd.Stdout = nil\n\tcmd.Stderr = nil\n\tapplyDetachAttrs(cmd)\n\n\tif err := cmd.Start(); err != nil {\n\t\treturn 0, err\n\t}\n\n\taddr := tr.Address(appID)\n\tdeadline := time.Now().Add(dialTimeout)\n\tfor time.Now().Before(deadline) {\n\t\tif conn, dialErr := tr.Dial(addr); dialErr == nil {\n\t\t\tconn.Close()\n\t\t\treturn cmd.Process.Pid, nil\n\t\t}\n\t\ttime.Sleep(dialRetryInterval)\n\t}\n\treturn cmd.Process.Pid, fmt.Errorf(\"bus did not become ready within %v\", dialTimeout)\n}\n\nfunc buildForkArgs(profileName, domain string) []string {\n\targs := []string{\"event\", \"_bus\", \"--profile\", profileName}\n\tif domain != \"\" {\n\t\targs = append(args, \"--domain\", domain)\n\t}\n\treturn args\n}\n\n// announceForkedBus: \"auto-exits 30s\" must track bus.idleTimeout.\nfunc announceForkedBus(w io.Writer, pid int) {\n\tfmt.Fprintf(w, \"[event] started bus daemon pid=%d (auto-exits 30s after last consumer)\\n\", pid)\n}\n","sourceCodeStart":146,"sourceCodeEnd":179,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/event/consume/startup.go#L146-L179","documentation":"forkBus started the detached bus child process, but the polling loop could not dial its transport address within dialTimeout; the child PID is returned together with this error because the daemon may still be booting - or died before binding.","triggerScenarios":"Thrown at internal/event/consume/startup.go:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check bus logs for startup failure and app credentials","Retry the command once the child has bound, or increase the dial timeout"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}