sipeed/picoclaw · error
deltachat select_account
Error message
deltachat select_account: %w
What it means
Fired after account selection setup when the select_account RPC call fails. Means the Delta Chat core refused or could not switch the active account to accountID (invalid ID, core error, or transport failure), so the channel cannot operate on that account and startup aborts.
Solutions
- Verify the account ID exists via get_all_accounts before selecting
- Check RPC server health and retry on transient failures
- Ensure earlier add/configure steps succeeded so the ID is valid
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at pkg/channels/deltachat/deltachat.go:1018 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/91689f5bc98af586.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/channels/deltachat/deltachat.go:1018
}
} else if c.config.Password.String() != "" {
changed, err := c.accountConfigChanged(ctx, accountID)
if err != nil {
logger.WarnCF("deltachat", "Could not read account config; reconfiguring", map[string]any{
"email": c.config.Email,
"error": err.Error(),
})
changed = true
}
if changed {
if err := c.configureAccount(ctx, accountID); err != nil {
return err
}
}
}
if _, err := c.rpc.call(ctx, "select_account", accountID); err != nil {
return fmt.Errorf("deltachat select_account: %w", err)
}
if err := c.applyProfileConfig(ctx, accountID); err != nil {
return err
}
// Mark this account as a bot so the core delivers all messages to us.
if _, err := c.rpc.call(ctx, "batch_set_config", accountID, map[string]string{"bot": "1"}); err != nil {
return fmt.Errorf("deltachat set bot config: %w", err)
}
if _, err := c.rpc.call(ctx, "start_io", accountID); err != nil {
return fmt.Errorf("deltachat start_io: %w", err)
}
c.accountID = accountID
return nil
}
func (c *DeltaChatChannel) createChatmailBootstrapAccount(ctx context.Context, server string) error {
raw, err := c.rpc.call(ctx, "add_account")View on GitHub (pinned to 49183d7e8d)