Skip to content

Erro ao importar contatos #18

@kestjones

Description

@kestjones

Quando tento importar os contatos ele apresenta um erro 500:

[14:26:59.708] ERROR: Could not get whatsapp contacts from phone. Err: [object Object]
[14:26:59.713] ERROR: Cannot read properties of undefined (reading 'forEach')
TypeError: Cannot read properties of undefined (reading 'forEach')
at /home/deploy/whaticket/backend/src/services/WbotServices/ImportContactsService.ts:22:17
at Generator.throw ()
at rejected (/home/deploy/whaticket/backend/src/services/WbotServices/ImportContactsService.ts:6:65)

Debugando parece que ele chama a função ShowBaileysService(wbot.id) ele retorna esse erro como se não encontrasse os dados na tabela. De fato a tabela Baileys não possui nenhum dado cadastrado.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions