{"record":{"id":"0398f26557c51097","repo":"sipeed/picoclaw","slug":"deltachat-start-io-w","errorCode":null,"errorMessage":"deltachat start_io: %w","messagePattern":"deltachat start_io: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/deltachat/deltachat.go","lineNumber":1028,"sourceCode":"\t\tif changed {\n\t\t\tif err := c.configureAccount(ctx, accountID); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\tif _, err := c.rpc.call(ctx, \"select_account\", accountID); err != nil {\n\t\treturn fmt.Errorf(\"deltachat select_account: %w\", err)\n\t}\n\tif err := c.applyProfileConfig(ctx, accountID); err != nil {\n\t\treturn err\n\t}\n\t// Mark this account as a bot so the core delivers all messages to us.\n\tif _, err := c.rpc.call(ctx, \"batch_set_config\", accountID, map[string]string{\"bot\": \"1\"}); err != nil {\n\t\treturn fmt.Errorf(\"deltachat set bot config: %w\", err)\n\t}\n\tif _, err := c.rpc.call(ctx, \"start_io\", accountID); err != nil {\n\t\treturn fmt.Errorf(\"deltachat start_io: %w\", err)\n\t}\n\n\tc.accountID = accountID\n\treturn nil\n}\n\nfunc (c *DeltaChatChannel) createChatmailBootstrapAccount(ctx context.Context, server string) error {\n\traw, err := c.rpc.call(ctx, \"add_account\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\"deltachat add_account: %w\", err)\n\t}\n\tvar accountID int64\n\tif decodeErr := json.Unmarshal(raw, &accountID); decodeErr != nil {\n\t\treturn fmt.Errorf(\"deltachat add_account decode: %w\", decodeErr)\n\t}\n\n\tcreated := false\n\tdefer func() {","sourceCodeStart":1010,"sourceCodeEnd":1046,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/deltachat/deltachat.go#L1010-L1046","documentation":"Fired when the start_io RPC fails after account selection and bot configuration. Means the Delta Chat core could not begin network I/O (sending/receiving) for accountID, so the channel would never receive or deliver messages and startup fails.","triggerScenarios":"Thrown at pkg/channels/deltachat/deltachat.go:1028 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure is_configured is true and configureAccount ran before start_io","Check network/email credentials if the core aborts IO immediately","Retry the call; brief RPC unavailability at startup is common"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","contentChangedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}