devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
831 stars 254 forks source link

Getting error in /sendImage api noweb engine #227

Closed khushboo-scogo closed 3 weeks ago

khushboo-scogo commented 9 months ago

hey @allburov, I am using noweb engine now for my application. In that I am getting this error while sending image /sendImage api. image can you please help me to figure out where this error is coming from. Thanks in advance.

khushboo-scogo commented 8 months ago

@allburov Also my pod is getting restarted very often getting this error {"Error: Stream Errored (conflict)\n at WebSocketClient.<anonymous> (/app/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:501:13)\n at WebSocketClient.emit (node:events:517:28)\n at /app/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:236:35\n at Object.decodeFrame (/app/node_modules/@adiwajshing/baileys/lib/Utils/noise-handler.js:136:17)\n at WebSocketClient.onMessageRecieved (/app/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:212:15)\n at WebSocketClient.emit (node:events:517:28)\n at WebSocket.<anonymous> (/app/node_modules/@adiwajshing/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:517:28)\n at Receiver.receiverOnMessage (/app/node_modules/@adiwajshing/baileys/node_modules/ws/lib/websocket.js:1192:20)\n at Receiver.emit (node:events:517:28)","msg":"connection errored"}

how to fix this please help me out

allburov commented 8 months ago

@khushboo-scogo hi! Sorry for the delay. Could you provide the request you send to /api/sendImage? Just tested it with both base64 and url requests - works fine https://waha.devlike.pro/docs/how-to/send-messages/#send-image-imagesversionspluspng

allburov commented 8 months ago

May the problem in format or in the file itself, or in the recipient format

allburov commented 8 months ago

my pod is getting restarted very often

Is there any errors in docker logs for that, could you send it here too? https://waha.devlike.pro/docs/how-to/deploy/#viewing-the-logs

devlikepro commented 3 weeks ago

Hi! Try now, it should have been fixed a while ago

patron:PRO