[GOWS] - `/channels` creation fails with 500 error in GOWS engine
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:
- Connect WhatsApp account.
- 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...
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 👍
@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!
basically, the channel is successfully created, but the profile picture is missing.
@devlikepro I tried creating a channel using a PNG for profile image, but it didn't work. JPG works fine.