devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
819 stars 249 forks source link

[BUG][WEBJS] - Sends Message Twice on Whatsapp - Intermittent #411

Open ehussain opened 4 days ago

ehussain commented 4 days ago

Describe the bug

Unable to send audio message using audio type option. It results in timeout error.

Version { "version": "2024.6.8", "engine": "WEBJS", "tier": "PLUS", "browser": "/usr/bin/chromium" }

To Reproduce Steps to reproduce the behavior:

Send following request.

/sendText 

{"chatId":"XXXXXX@c.us","session":"XXXXX","type":"text","text":"UNQ15 \u05e9\u05dc\u05d5\u05dd  \u05d9\u05d5\u05d1\u05dc 23,\n\n\u05d0\u05d5\u05d8\u05d5\u05d8\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e0\u05e4\u05d2\u05e9\u05d9\u05dd \ud83d\ude0a \n\u05d4\u05e8\u05e6\u05d0\u05d4 \u05e2\u05dc \u05d8\u05db\u05e0\u05d9\u05e7\u05ea \u05d4\u05de\u05d3\u05d9\u05d8\u05e6\u05d9\u05d4 \u05d4\u05d8\u05e8\u05e0\u05e1\u05e0\u05d3\u05e0\u05d8\u05dc\u05d9\u05ea \u05ea\u05ea\u05d7\u05d9\u05dc \u05d1 02:00\n\u05e0\u05e9\u05de\u05d7 \u05dc\u05e8\u05d0\u05d5\u05ea\u05da!\n\n\u05e7\u05d9\u05e9\u05d5\u05e8 \u05d0\u05d9\u05e9\u05d9 \u05dc\u05d4\u05e8\u05e6\u05d0\u05d4: \nhttp:\/\/dev.tmisrael.org\/lecture-gateway\/?l=1682&r=11881&c=oc9QRSdcQS\n\n\u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3: \u05d4\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea \u05e2\u05dd \u05de\u05e6\u05dc\u05de\u05d5\u05ea \u05e4\u05ea\u05d5\u05d7\u05d5\u05ea\n\n\u05e4\u05e8\u05d8\u05d9 \u05d4\u05de\u05d5\u05e8\u05d4 \u05e9\u05de\u05e2\u05d1\u05d9\u05e8\/\u05d4 \u05d0\u05ea \u05d4\u05d4\u05e8\u05e6\u05d0\u05d4:\n\u05e8\u05d5\u05d9\u05ea \u05d2\u05d9\u05e0\u05d6\u05d1\u05d5\u05e8\u05d2\n\u05de\u05e1\u05e4\u05e8 \u05d8\u05dc\u05e4\u05d5\u05df: 054-4965597\n\n\n\u05e8\u05d5\u05e6\u05d9\u05dd \u05d4\u05e6\u05e6\u05d4 \u05dc\u05de\u05d4 \u05d4\u05de\u05d3\u05d9\u05d8\u05e6\u05d9\u05d4 \u05d9\u05db\u05d5\u05dc\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05e2\u05d1\u05d5\u05e8\u05db\u05dd?\n\u05e6\u05e4\u05d5 \u05d1\u05e1\u05e8\u05d8\u05d5\u05df \u05d4\u05d1\u05d0 \u05d1\u05d5 \u05d0\u05e0\u05e9\u05d9\u05dd \u05de\u05e1\u05e4\u05e8\u05d9\u05dd \u05db\u05d9\u05e6\u05d3 \u05d4\u05de\u05d3\u05d9\u05d8\u05e6\u05d9\u05d4 \u05e9\u05d9\u05e0\u05ea\u05d4 \u05d0\u05ea \u05d7\u05d9\u05d9\u05d4\u05dd:\nhttps:\/\/www.youtube.com\/watch?v=8q6BnSv3iAQ \n\n\u05dc\u05d4\u05e4\u05e1\u05e7\u05ea \u05e7\u05d1\u05dc\u05ea \u05d4\u05d5\u05d3\u05e2\u05d5\u05ea \u05d5\u05d5\u05d0\u05d8\u05e1\u05d0\u05e4 \u05d4\u05e9\u05d1  \u05d1\u05db\u05dc \u05e2\u05ea"}

Expected behavior

It should send whatsapp message only once. But instead it sends a message twice, but it happens sometimes not always.

Engine I'm using WEBJS engine.

Requests - Responses

Send following request.

{"chatId":"XXXXXX@c.us","session":"XXXXX","type":"text","text":"UNQ15 \u05e9\u05dc\u05d5\u05dd  \u05d9\u05d5\u05d1\u05dc 23,\n\n\u05d0\u05d5\u05d8\u05d5\u05d8\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e0\u05e4\u05d2\u05e9\u05d9\u05dd \ud83d\ude0a \n\u05d4\u05e8\u05e6\u05d0\u05d4 \u05e2\u05dc \u05d8\u05db\u05e0\u05d9\u05e7\u05ea \u05d4\u05de\u05d3\u05d9\u05d8\u05e6\u05d9\u05d4 \u05d4\u05d8\u05e8\u05e0\u05e1\u05e0\u05d3\u05e0\u05d8\u05dc\u05d9\u05ea \u05ea\u05ea\u05d7\u05d9\u05dc \u05d1 02:00\n\u05e0\u05e9\u05de\u05d7 \u05dc\u05e8\u05d0\u05d5\u05ea\u05da!\n\n\u05e7\u05d9\u05e9\u05d5\u05e8 \u05d0\u05d9\u05e9\u05d9 \u05dc\u05d4\u05e8\u05e6\u05d0\u05d4: \nhttp:\/\/dev.tmisrael.org\/lecture-gateway\/?l=1682&r=11881&c=oc9QRSdcQS\n\n\u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3: \u05d4\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea \u05e2\u05dd \u05de\u05e6\u05dc\u05de\u05d5\u05ea \u05e4\u05ea\u05d5\u05d7\u05d5\u05ea\n\n\u05e4\u05e8\u05d8\u05d9 \u05d4\u05de\u05d5\u05e8\u05d4 \u05e9\u05de\u05e2\u05d1\u05d9\u05e8\/\u05d4 \u05d0\u05ea \u05d4\u05d4\u05e8\u05e6\u05d0\u05d4:\n\u05e8\u05d5\u05d9\u05ea \u05d2\u05d9\u05e0\u05d6\u05d1\u05d5\u05e8\u05d2\n\u05de\u05e1\u05e4\u05e8 \u05d8\u05dc\u05e4\u05d5\u05df: 054-4965597\n\n\n\u05e8\u05d5\u05e6\u05d9\u05dd \u05d4\u05e6\u05e6\u05d4 \u05dc\u05de\u05d4 \u05d4\u05de\u05d3\u05d9\u05d8\u05e6\u05d9\u05d4 \u05d9\u05db\u05d5\u05dc\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05e2\u05d1\u05d5\u05e8\u05db\u05dd?\n\u05e6\u05e4\u05d5 \u05d1\u05e1\u05e8\u05d8\u05d5\u05df \u05d4\u05d1\u05d0 \u05d1\u05d5 \u05d0\u05e0\u05e9\u05d9\u05dd \u05de\u05e1\u05e4\u05e8\u05d9\u05dd \u05db\u05d9\u05e6\u05d3 \u05d4\u05de\u05d3\u05d9\u05d8\u05e6\u05d9\u05d4 \u05e9\u05d9\u05e0\u05ea\u05d4 \u05d0\u05ea \u05d7\u05d9\u05d9\u05d4\u05dd:\nhttps:\/\/www.youtube.com\/watch?v=8q6BnSv3iAQ \n\n\u05dc\u05d4\u05e4\u05e1\u05e7\u05ea \u05e7\u05d1\u05dc\u05ea \u05d4\u05d5\u05d3\u05e2\u05d5\u05ea \u05d5\u05d5\u05d0\u05d8\u05e1\u05d0\u05e4 \u05d4\u05e9\u05d1  \u05d1\u05db\u05dc \u05e2\u05ea"}

Response

Success. But sends message twice randomly.

patron:ADVANCED