Skip to content

[BUG] remoteJid is differenten than the real whatsaap number #1916

@kbetoacero

Description

@kbetoacero

Welcome!

  • Yes, I have searched for similar issues on GitHub and found none.

What did you do?

Versión de Evolution API: v2.2.3 and older versions
When a message is received from a new WhatsApp contact using an Android Whatsapp number Evolution API attempts to create a contact using the LID as the phone number, (remoteJid: '154417159582282@lid',) instead of the real number (57315234xxxxx@s.whtasaap.net) causing the response message not delivered

What did you expect?

Evolution API should resolve the LID to a real phone number (...@s.whatsapp.net) before sending to chatwoot or any other app.

What did you observe instead of what you expected?

With iphone the phone number is correct. It only happens when the sender has an Android phone.

Screenshots/Videos

No response

Which version of the API are you using?

v2.2.1 and tried latest too

What is your environment?

Windows

Other environment specifications

easypanel on hostinger VPS

If applicable, paste the log output

[Evolution API] [BNSt] v2.1.1 184 - Sat Sep 06 2025 20:31:33 LOG [ChannelStartupService] [object]
{
key: MessageKey {
remoteJid: '573024062195@s.whatsapp.net',
fromMe: true,
id: '3EB073ADB8DD86D47345ABD99D2213513E739793'
},
pushName: '',
message: {
conversation: '¡Hola! Bienvenido/a a BNS. Soy XXXX, tu asistente personal. ¿Qué te gustaría hacer hoy?\n' +
'\n' +
'1. Ver información de servicios\n' +
'2. Hacer una reserva\n' +
'3. Otros temas (cancelar, etc.)\n' +
'\n' +
'Por favor, responde con el número de la opción que prefieras.'
},
contextInfo: null,
messageType: 'conversation',
messageTimestamp: 1757201492,
instanceId: '2e9e87e9-bf54-4022-9ad0-10ea289320be',
source: 'unknown'
}

[Evolution API] v2.1.1 184 - Sat Sep 06 2025 20:31:33 VERBOSE [CacheEngine] [string] RedisCache initialized for he
[Evolution API] v2.1.1 184 - Sat Sep 06 2025 20:31:33 VERBOSE [CacheService] [string] cacheservice created using cache engine: Vt
[Evolution API] v2.1.1 184 - Sat Sep 06 2025 20:31:33 VERBOSE [CacheEngine] [string] RedisCache initialized for he
[Evolution API] v2.1.1 184 - Sat Sep 06 2025 20:31:33 VERBOSE [CacheService] [string] cacheservice created using cache engine: Vt
[Evolution API] [BNS] v2.1.1 184 - Sat Sep 06 2025 20:34:02 LOG [ChannelStartupService] [object]
{
key: {
remoteJid: '154417159582282@lid',
fromMe: false,
id: 'AC480D75BAFBB29B688D9F897E590325',
participant: undefined
},
pushName: 'Pepinita Mandarin',
message: {
conversation: 'Hola',
messageContextInfo: MessageContextInfo {
deviceListMetadata: [DeviceListMetadata],
deviceListMetadataVersion: 2,
messageSecret: [Uint8Array]
}
},
contextInfo: undefined,
messageType: 'conversation',
messageTimestamp: 1757201641,
instanceId: '2e9e87e9-bf54-4022-9ad0-10ea289320be',
source: 'android',
chatwootMessageId: 3426,
chatwootInboxId: 2,
chatwootConversationId: 23
}

Additional Notes

No response

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