waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - `/channels` creation fails with 500 error in GOWS engine

Open rjarsaniya opened this issue 1 year ago • 8 comments

Describe the bug

Unable to create a new channel when using the GoWS engine.

Version

Get the WAHA version by calling GET /api/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}}/:session/channels
{
  "name": "Tiger In Air",
  "description": "Tiger.."
}

Expected behavior

Channel should be created successfully.

Actual Behavior

Returns 500 error: failed [500] {\"statusCode\":500,\"timestamp\":\"2025-08-29T05:20:20.773Z\",\"exception\":{\"stack\":\"TypeError: Cannot use 'in' operator to search for 'url' in undefined\\n at WhatsappSessionGoWSPlus.fileToMedia (/app/dist/plus/engines/gows/session.gows.plus.js:27:19)\\n at WhatsappSessionGoWSPlus.channelsCreateChannel (/app/dist/plus/engines/gows/session.gows.plus.js:188:34)\\n at ChannelsController.create (/app/dist/api/channels.controller.js:35:24)\\n at /app/node_modules/@nestjs/core/router/router-executi...

rjarsaniya avatar Aug 29 '25 07:08 rjarsaniya

Try setting some picture https://waha.devlike.pro/docs/how-to/channels/#create-a-new-channel

We'll fix no picture channel in the next release 👍

patron:PRO

devlikepro avatar Aug 29 '25 09:08 devlikepro

2025.8.3 - GOWS - Create Channel with no picture - #1293

patron:PRO

devlikepro avatar Aug 30 '25 11:08 devlikepro

@devlikepro I tried using the data below

{
   name: 'Tiger Group',
   description: 'Tigers are here!',
   picture: {
     mimetype: 'image/jpeg',
     url: 'https://static.cleverpush.com/channel/icon/38ynNJZcpycNzqpoZ.jpg',
     filename: '360_F_1162295048_6LXIZknaRwWn472pRPlFisB0xbbMIhGz.jpg'
   }
}

The channel is being created, but the profile image is no longer there. Please check; we also tried with default data.

{
  "name": "Channel Name",
  "description": "Channel Description",
  "picture": {
    "mimetype": "image/jpeg",
    "filename": "filename.jpg",
    "url": "https://github.com/devlikeapro/waha/raw/core/examples/dev.likeapro.jpg"
  }
}

Check and update as soon as possible. Thanks!

rjarsaniya avatar Sep 24 '25 04:09 rjarsaniya

2 UNKNOWN: graphql error: 400 Bad Request (CRITICAL)?

patron:PRO

devlikepro avatar Sep 24 '25 09:09 devlikepro

basically, the channel is successfully created, but the profile picture is missing.

rjarsaniya avatar Sep 24 '25 09:09 rjarsaniya

⚙️ Updates

patron:PRO

devlikepro avatar Oct 04 '25 10:10 devlikepro

try to logout and scan qr core again if just update doesn't help

patron:PRO

devlikepro avatar Oct 04 '25 10:10 devlikepro

@devlikepro I tried creating a channel using a PNG for profile image, but it didn't work. JPG works fine.

rjarsaniya avatar Nov 18 '25 09:11 rjarsaniya