waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - `/sendImage` endpoint not working properly on Android (not sent) and iOS (not downloadable) with GOWS engine

Open rjarsaniya opened this issue 1 year ago • 6 comments

Describe the bug

When using the GoWS engine, the /sendImage endpoint shows different issues depending on the device: Android → The image is not sent at all. iOS → The image is sent but cannot be downloaded.

Version

{
    "version": "2025.8.1",
    "engine": "GOWS",
    "tier": "PLUS"
}

Steps

To Reproduce Steps to reproduce the behavior:

  1. Connect WhatsApp account.
  2. Send request: POST {{baseUrl}}/api/sendImage

with payload:

{
  "chatId": "120363403412946214@newsletter",
  "file": {
    "mimeType": "image/jpeg",
    "url": "https://static.cleverpush.com/notification/icon/rFi8cwW538suApogM.jpg",
    "name": "image.jpg"
  },
  "session": "default",
  "caption": "PM Modi arrives in Japan on two-day visit"
}

Expected behavior

On Android → Image should be delivered to the recipient. On iOS → Image should be downloadable.

Actual Behavior

On Android → Image is not sent. On iOS → Image is sent but cannot be downloaded.

rjarsaniya avatar Aug 29 '25 07:08 rjarsaniya

Does it happen only with channels?

patron:PRO

devlikepro avatar Aug 29 '25 07:08 devlikepro

Does it happen only with channels?

patron:PRO

YES, When I use https://github.com/devlikeapro/waha/raw/core/examples/waha.jpg, the image is sent without any issues. However, when I try using https://static.cleverpush.com/notification/icon/rFi8cwW538suApogM.jpg, the problem occurs.

Could this be related to a domain restriction, an image size issue, or something else?

rjarsaniya avatar Aug 29 '25 07:08 rjarsaniya

It shouldn't be - if it returns 201\200 OK status it means it downloaded fine 🤔

patron:PRO

devlikepro avatar Aug 29 '25 07:08 devlikepro

It shouldn't be - if it returns 201\200 OK status it means it downloaded fine 🤔

patron:PRO

Please try with the URL I sent and update me once you've done so. Let me know if you need any additional information

rjarsaniya avatar Aug 29 '25 08:08 rjarsaniya

@devlikepro Any update here?

rjarsaniya avatar Sep 02 '25 08:09 rjarsaniya

Here's the right JSON you need to send, do not change keys, especially mimetype != mimeType

{
  "chatId": "123123@newsletter",
  "file": {
    "mimetype": "image/jpeg",
    "url": "https://static.cleverpush.com/notification/icon/rFi8cwW538suApogM.jpg"
  },
  "reply_to": null,
  "caption": "PM Modi arrives in Japan on two-day visit",
  "session": "default"
}

Tested it on android, works fine with 2025.9.3 (we'll release it soon, but should work in 8.1 as well)

patron:PRO

devlikepro avatar Sep 14 '25 10:09 devlikepro