sipeed/picoclaw · error

deltachat add_account: %w

Error message

deltachat add_account: %w

What it means

Error "deltachat add_account: %w" thrown in sipeed/picoclaw.

Source

Thrown at pkg/channels/deltachat/deltachat.go:986

		return err
	}

	var accountID int64
	for _, acc := range accounts {
		if acc.Kind == "Configured" && strings.EqualFold(acc.Addr, c.config.Email) {
			accountID = acc.ID
			break
		}
	}

	if accountID == 0 {
		if c.config.Password.String() == "" {
			return c.passwordRequiredError("account not found")
		}

		raw, callErr := c.rpc.call(ctx, "add_account")
		if callErr != nil {
			return fmt.Errorf("deltachat add_account: %w", callErr)
		}
		if decErr := json.Unmarshal(raw, &accountID); decErr != nil {
			return fmt.Errorf("deltachat add_account decode: %w", decErr)
		}
	}

	configured, err := c.isConfigured(ctx, accountID)
	if err != nil {
		return err
	}
	if !configured {
		if err := c.configureAccount(ctx, accountID); err != nil {
			return err
		}
	} 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{

View on GitHub (pinned to 49183d7e8d)

When it happens

Trigger: Thrown at pkg/channels/deltachat/deltachat.go:986 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/11ec8cd3138babf1. Report an issue: GitHub.