waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - Error with status code 500 when sending message.

Open onse7up opened this issue 6 months ago • 17 comments

Describe the bug

Hi everyone!

I'm having a problem with the node that sends messages to the lead (send_lead).

Whenever a lead sends a message, it returns the error shown in the JSON below.

Does anyone have any idea how to solve this?

Version

{ "errorMessage": "The service was not able to process your request", "errorDescription": "Request failed with status code 500", "errorDetails": { "httpCode": "500", "errorData": { "statusCode": 500, "exception": { "message": "2 UNKNOWN: server returned error 400", "details": "server returned error 400" },

Steps

To Reproduce Steps to reproduce the behavior:

Whenever the agent receives a message, that message is processed, and at the last node in the flow, which should send the response to the lead, it throws the error described above.

Screenshots

Image

onse7up avatar May 15 '26 11:05 onse7up

I had the same bug here. Fixed it by restarting session.

mhaxabreu avatar May 19 '26 11:05 mhaxabreu

+1

johnhenderson avatar May 20 '26 01:05 johnhenderson

+1 on api

patron:PLUS

Jaedson-Digiliza avatar May 20 '26 20:05 Jaedson-Digiliza

English


+1 is api

github-actions[bot] avatar May 20 '26 20:05 github-actions[bot]

+1 on api

patron:PLUS

dg103 avatar May 21 '26 13:05 dg103

English


+1 is api

github-actions[bot] avatar May 21 '26 13:05 github-actions[bot]

Image

hoje fui enviar mensagem para um contato onde nunca tinha falado antes e me deparei com esse popup no whatsapp, acredito que isso tenha haver com esse erro, quando vai tentar enviar a mensagem aparece esse popup no "whatsapp web" e a waha ainda não mapeou para confirmar(se for possivel).

aparentemente só aparece no primeiro contato novo, após aprovar não aparece mais para essa conta de whatsapp.

link do saiba mais: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

DRIMOL avatar May 21 '26 18:05 DRIMOL

English


Image

Today I went to send a message to a contact I had never spoken to before and I came across this popup on WhatsApp, I believe this has something to do with this error, when I try to send the message this popup appears on "Whatsapp web" and waha has not yet mapped it to confirm (if possible).

apparently it only appears in the first new contact, after approval it no longer appears for that WhatsApp account.

link to learn more: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

github-actions[bot] avatar May 21 '26 18:05 github-actions[bot]

English

Image Today I went to send a message to a contact I had never spoken to before and I came across this popup on WhatsApp, I believe this has something to do with this error, when I try to send the message this popup appears on "Whatsapp web" and waha has not yet mapped it to confirm (if possible).

apparently it only appears in the first new contact, after approval it no longer appears for that WhatsApp account.

link to learn more: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

I dont think this is the cause, considering that when i had the problem, i could not send any message to anyone of my contacts, including me. And it went back to normal after i restarted the session in waha dashboard.

mhaxabreu avatar May 21 '26 18:05 mhaxabreu

Facing this issue

patron:PLUS

Cranbaerry avatar May 21 '26 18:05 Cranbaerry

Inglês

Imagem Hoje, ao tentar enviar uma mensagem para um contato com quem nunca havia falado antes, me deparei com essa janela pop-up no WhatsApp. Acredito que isso tenha alguma relação com o erro, pois, ao tentar enviar a mensagem, essa janela aparece no "WhatsApp Web" e o WhatsApp ainda não a mapeou para confirmação (se possível). Aparentemente, só aparece no primeiro contato novo; depois de aprovado, não aparece mais para aquela conta do WhatsApp. Link para mais informações: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

Não creio que seja essa a causa, visto que, quando tive o problema, não conseguia enviar mensagens para nenhum dos meus contatos, nem para mim mesmo. E tudo voltou ao normal depois que reiniciei a sessão no painel do Waha.

pode ser que sejam dois erros parecidos, esse dai tambem aconteceu comigo e tambem resolvi reiniciando, mas, esse acontece tambem, e só acontece com novos contatos esse é o erro que aparece para mim, devo abrir outro issue ou será a mesma coisa?

Image

DRIMOL avatar May 21 '26 18:05 DRIMOL

English


English

<img alt="Image" width="372" height="792" src="https://private-user-images.githubusercontent.com/47779716/596286978-bd4daf6c-8ae6-42f0-82e6-f6405 b91eb41.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnV zZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzkzODkyMTcsIm5iZiI6MTc3OTM4ODkxNywicGF0aCI6Ii80Nzc3OTc xNi81OTYyODY5NzgtYmQ0ZGFmNmMtOGFlNi00MmYwLTgyZTYtZjY0MDViOTFlYjQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUF DLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA1MjElMkZ1cy1lYXN0LTElMkZzMyUyRm F3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNTIxVDE4NDE1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0NT ZmMmMwYmIwYjM5ZjdmOTc0YzFiOWVlYzgzNmYzYmE2NmE0NmRjMmI5MGFjZDI3ZGQwZjc2YzhkZGIwYTUmWC1BbXotU2lnbmVkSGVhZG ""> Today, when trying to send a message to a contact I had never spoken to before, I came across this pop-up window on WhatsApp. I believe this has something to do with the error, because when trying to send the message, this window appears in "WhatsApp Web" and WhatsApp has not yet mapped it for confirmation (if possible). Apparently, it only appears on the first new contact; Once approved, it no longer appears for that WhatsApp account. Link for more information: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

I don't believe this is the cause, since when I had the problem, I couldn't send messages to any of my contacts, not even myself. And everything went back to normal after I restarted the session on the Waha panel.

It could be that there are two similar errors, this one also happened to me and I also solved it by restarting, but this happens too, and it only happens with new contacts This is the error that appears to me, should I open another issue or will it be the same thing?

Image

github-actions[bot] avatar May 21 '26 18:05 github-actions[bot]

Inglês

Imagem Hoje, ao tentar enviar uma mensagem para um contato com quem nunca havia falado antes, me deparei com essa janela pop-up no WhatsApp. Acredito que isso tenha alguma relação com o erro, pois, ao tentar enviar a mensagem, essa janela aparece no "WhatsApp Web" e o WhatsApp ainda não a mapeou para confirmação (se possível). Aparentemente, só aparece no primeiro contato novo; depois de aprovado, não aparece mais para aquela conta do WhatsApp. Link para mais informações: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

Não creio que seja essa a causa, visto que, quando tive o problema, não conseguia enviar mensagens para nenhum dos meus contatos, nem para mim mesmo. E tudo voltou ao normal depois que reiniciei a sessão no painel do Waha.

pode ser que sejam dois erros parecidos, esse dai tambem aconteceu comigo e tambem resolvi reiniciando, mas, esse acontece tambem, e só acontece com novos contatos esse é o erro que aparece para mim, devo abrir outro issue ou será a mesma coisa?

Image

Yes, this is a different issue. You can search if someone already reported it. If nobody reported, please open a issue for that

mhaxabreu avatar May 21 '26 19:05 mhaxabreu

English


English

<img alt="Image" width="372" height="792" src="https://private-user-images.githubusercontent.com/47779716/596286978-bd4daf6c-8ae6-42f0-82e6-f6405 b91eb41.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnV zZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzkzODkyMTcsIm5iZiI6MTc3OTM4ODkxNywicGF0aCI6Ii80Nzc3OTc xNi81OTYyODY5NzgtYmQ0ZGFmNmMtOGFlNi00MmYwLTgyZTYtZjY0MDViOTFlYjQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUF DLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA1MjElMkZ1cy1lYXN0LTElMkZzMyUyRm F3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNTIxVDE4NDE1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0NT ZmMmMwYmIwYjM5ZjdmOTc0YzFiOWVlYzgzNmYzYmE2NmE0NmRjMmI5MGFjZDI3ZGQwZjc2YzhkZGIwYTUmWC1BbXotU2lnbmVkSGVhZG ""> Today, when trying to send a message to a contact I had never spoken to before, I came across this pop-up window on WhatsApp. I believe this has something to do with the error, because when trying to send the message, this window appears in "WhatsApp Web" and WhatsApp has not yet mapped it for confirmation (if possible). Apparently, it only appears on the first new contact; Once approved, it no longer appears for that WhatsApp account. Link for more information: https://faq.whatsapp.com/2286952358121083?locale=pt_BR

I don't believe this is the cause, since when I had the problem, I couldn't send messages to any of my contacts, not even myself. And everything went back to normal after I restarted the session on the Waha panel.

It could be that there are two similar errors, this one also happened to me and I also solved it by restarting, but this happens too, and it only happens with new contacts, this is the error that appears to me, should I open another issue or will it be the same thing?

<img alt="Image" width="926" height="131" src="https://private-user-images.githubusercontent.com/47779716/596297941-3a20f094-9792-4bfb-bb16-2a63c ef154fd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnV zZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzkzOTAyNjMsIm5iZiI6MTc3OTM4OTk2MywicGF0aCI6Ii80Nzc3OTc xNi81OTYyOTc5NDEtM2EyMGYwOTQtOTc5Mi00YmZiLWJiMTYtMmE2M2NlZjE1NGZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUF DLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA1MjElMkZ1cy1lYXN0LTElMkZzMyUyRm F3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNTIxVDE4NTkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4Zj llMjRjMjllOWY3ZTQ2M2M1YjYwNTA0M2FjZDlkZmM1ZDE2YTdjNDY1YzQwNDMwYjQzYmU2NmFmMzc3MGMmWC1BbXotU2lnbmVkSGVhZG "">

Yes, this is a different issue. You can search if someone already reported it. If nobody reported, please open an issue for that

github-actions[bot] avatar May 21 '26 19:05 github-actions[bot]

+1

patron:PRO

higorrezend avatar May 22 '26 09:05 higorrezend

I identified that the issue appears to be related to the new identifier pattern currently being used by WhatsApp.

Older messages were using the following format:

"from": "[email protected]"

However, after the error occurred, messages sent directly from the mobile device started arriving in this format:

"from": "909806277xxxxx@lid"

Based on the analysis, the @lid pattern seems to be the newer/correct identifier currently used by WhatsApp for messages sent directly from the phone.

The issue appears to happen because WAHA is still trying to operate using the old @c.us format, which causes incompatibility once the conversation/message starts using @lid.

The @lid identifier was captured from messages sent directly through the mobile device, without any involvement from the WAHA API, which reinforces that this behavior is coming from WhatsApp itself rather than the integration.

mbarizao avatar May 25 '26 17:05 mbarizao

#2084

patron:PRO

devlikepro avatar May 26 '26 03:05 devlikepro