sipeed/picoclaw · error
search chats
Error message
search chats: %w
What it means
Wraps a failure of the Delta Chat core RPC method get_chatlist_entries issued by findMatchingChats while searching for chats whose names/members match an alias query. It fires when the RPC transport fails, the account ID is invalid, or the core returns an error for the query; resolveAliasChatID then aborts alias resolution and reports the chat lookup as failed.
Solutions
- Confirm the RPC server is alive and the account is configured before searching
- Retry the chat-list lookup; startup races often produce transient failures
- Propagate a descriptive recipient-resolution error to the caller
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at pkg/channels/deltachat/deltachat.go:795 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/1ccaae12c599f4bf.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/channels/deltachat/deltachat.go:795
contact.Name,
contact.Address,
contact.NameAndAddr,
}
if local, _, ok := strings.Cut(contact.Address, "@"); ok {
aliases = append(aliases, local, "@"+local)
}
for _, alias := range aliases {
if strings.EqualFold(strings.TrimSpace(alias), query) {
return true
}
}
return false
}
func (c *DeltaChatChannel) findMatchingChats(ctx context.Context, query string) ([]dcChat, error) {
raw, err := c.rpc.call(ctx, "get_chatlist_entries", c.accountID, 0, query, nil)
if err != nil {
return nil, fmt.Errorf("search chats: %w", err)
}
var chatIDs []int64
if err := json.Unmarshal(raw, &chatIDs); err != nil {
return nil, fmt.Errorf("search chats decode: %w", err)
}
var chats []dcChat
for _, chatID := range uniqueInt64s(chatIDs) {
if chatID <= 0 {
continue
}
chat, err := c.getFullChatByContext(ctx, chatID)
if err != nil {
return nil, err
}
if chat.IsDeviceChat {
continue
}
chats = append(chats, *chat)View on GitHub (pinned to 49183d7e8d)