Skip to content

Cannot read properties of undefined (reading 'onWhatsApp') #2462

@TiagoGouvea

Description

@TiagoGouvea

O servidor falha ao enviar mensagens com o erro Cannot read properties of undefined (reading 'onWhatsApp')

evolution_api_prod  | 2026-03-05T14:19:58.547898139Z TypeError: Cannot read properties of undefined (reading 'onWhatsApp')
evolution_api_prod  | 2026-03-05T14:19:58.547900864Z     at io.whatsappNumber (/evolution/dist/main.js:275:1334)
evolution_api_prod  | 2026-03-05T14:19:58.547903479Z     at async io.sendPresence (/evolution/dist/main.js:263:13842)
evolution_api_prod  | 2026-03-05T14:19:58.547906054Z     at async Es.sendPresence (/evolution/dist/main.js:2:8783)
evolution_api_prod  | 2026-03-05T14:19:58.547908589Z     at async Pi.dataValidate (/evolution/dist/main.js:316:87958)
evolution_api_prod  | 2026-03-05T14:19:58.547911224Z     at async /evolution/dist/main.js:316:155408
evolution_api_prod  | 2026-03-05T14:19:58.547913819Z
evolution_api_prod  | 2026-03-05T14:19:58.547916425Z [Evolution API]    v2.3.7  156   -  Thu Mar 05 2026 11:19:58     ERROR   [SERVER]  [object]
evolution_api_prod  | 2026-03-05T14:19:58.547933878Z {
evolution_api_prod  | 2026-03-05T14:19:58.547936543Z   event: 'error',
evolution_api_prod  | 2026-03-05T14:19:58.547939088Z   data: {
evolution_api_prod  | 2026-03-05T14:19:58.547941563Z     error: 'Bad Request',
evolution_api_prod  | 2026-03-05T14:19:58.547944057Z     message: [
evolution_api_prod  | 2026-03-05T14:19:58.547946602Z       "TypeError: Cannot read properties of undefined (reading 'onWhatsApp')"
evolution_api_prod  | 2026-03-05T14:19:58.547949278Z     ],
evolution_api_prod  | 2026-03-05T14:19:58.547951763Z     status: 400,
evolution_api_prod  | 2026-03-05T14:19:58.547954287Z     response: { message: [Array] }
evolution_api_prod  | 2026-03-05T14:19:58.547956792Z   },
evolution_api_prod  | 2026-03-05T14:19:58.547959277Z   date_time: '2026-03-05T11:19:58.547Z',
evolution_api_prod  | 2026-03-05T14:19:58.547961801Z   api_key: 'xxxx',
evolution_api_prod  | 2026-03-05T14:19:58.547964317Z   server_url: 'http://localhost:8080'
evolution_api_prod  | 2026-03-05T14:19:58.547966872Z }

Which version of the API are you using?

v2.3.7

What is your environment?

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions