[BUG][NOWEB] - Message lost
The webhook received the message, but the corresponding message could not be obtained through the history interface. The corresponding message cannot be obtained through the message ID.
/api/147808/chats/xxxxxx%40c.us/messages/false_xxxxxx%40c.us_EC8AE9A31671F741428DEA66D5D759FE?downloadMedia=false { "statusCode": 404, "message": "Message not found", "error": "Not Found" }
{ "request": { "id": "evt_01jk9pxcvpavc6bg1ax4m8ntx5", "event": "message", "session": "147808", "me": { "id": "[email protected]", "pushName": "xxxxx" }, "payload": { "id": "[email protected]_325A6D2FB17357F7AAE5F9E1FCBA54DB", "timestamp": 1738714014, "from": "[email protected]", "fromMe": false, "hasMedia": true, "media": { "url": "http://localhost:3000/api/files/147808/325A6D2FB17357F7AAE5F9E1FCBA54DB.jpeg", "filename": null, "mimetype": "image/jpeg" }, "mediaUrl": "http://localhost:3000/api/files/147808/325A6D2FB17357F7AAE5F9E1FCBA54DB.jpeg", "ack": null, "ackName": "UNKNOWN", "replyTo": null, "_data": { "key": { "remoteJid": "[email protected]", "fromMe": false, "id": "325A6D2FB17357F7AAE5F9E1FCBA54DB" }, "messageTimestamp": 1738714014, "pushName": "Lavinia", "broadcast": false, "message": { "imageMessage": { "url": "https://mmg.whatsapp.net/v/t62.7118-24/32618063_1149729423303454_9059499383514968220_n.enc?ccb=11-4&oh=01_Q5AaIH0w3tl0hYzhQQW4uHPr5Uglp9cElBJ7pPkz7oLHShZh&oe=67CA140F&_nc_sid=5e03e0&mms3=true", "mimetype": "image/jpeg", "fileSha256": "yIji/qD7jfQ6LqyMIO8KXCPq6JSTKNH7Kz054pcFC/8=", "fileLength": "110925", "height": 941, "width": 1600, "mediaKey": "Q6nWKw+jFWt6bDgJbufevavcjfYZnRgmZ9lIc7vUW94=", "fileEncSha256": "ZzinjCycaJ0UXot23+6EZctzvOJmCmgYF1im7o14+0Q=", "directPath": "/v/t62.7118-24/32618063_1149729423303454_9059499383514968220_n.enc?ccb=11-4&oh=01_Q5AaIH0w3tl0hYzhQQW4uHPr5Uglp9cElBJ7pPkz7oLHShZh&oe=67CA140F&_nc_sid=5e03e0", "mediaKeyTimestamp": "1738714011", "jpegThumbnail": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsbGxscGx4hIR4qLSgtKj04MzM4PV1CR0JHQl2NWGdYWGdYjX2Xe3N7l33gsJycsOD/2c7Z//////////////8BGxsbGxwbHiEhHiotKC0qPTgzMzg9XUJHQkdCXY1YZ1hYZ1iNfZd7c3uXfeCwnJyw4P/Zztn////////////////CABEIACQAPQMBIgACEQEDEQH/xAAtAAADAQEBAAAAAAAAAAAAAAAAAgMBBAUBAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAAA7Eqi4qobNEiioR6sK8+pNSKsi5DE2X1eMEigKoAAH//EAB0QAAMBAAIDAQAAAAAAAAAAAAABAhESMRAgUUH/2gAIAQEAAT8AeyuzW/0dI5IdDo5DaZRiXaKUfB5nWFJHLxpVYO29WFXXwdsdGmmllNIqhsbNFaZpbKbGx+v/xAAUEQEAAAAAAAAAAAAAAAAAAAAw/9oACAECAQE/AE//xAAWEQEBAQAAAAAAAAAAAAAAAAAhADD/2gAIAQMBAT8AIz//2Q==", "scansSidecar": "Ui/eO6d+uiGA7PCR8iGbgLQG7WsZTixmuWsG6DisFhUU8J8adOxLpw==", "scanLengths": [ 9924, 35579, 19666, 45756 ], "midQualityFileSha256": "2iMWlwD5BXmGqeQq/fO5py3u4WnI1W6rzcMXQMhrYGc=" }, "messageContextInfo": { "deviceListMetadata": { "senderKeyHash": "eBvpcvwXNjYQHg==", "senderTimestamp": "1738542391", "recipientKeyHash": "Beei3Ef+veOUSQ==", "recipientTimestamp": "1737707941" }, "deviceListMetadataVersion": 2, "messageSecret": "KiPJLljHu4ebVajdzXr07mV7XSIknX2zoA0sErozMpU=" } }, "media": { "url": "http://localhost:3000/api/files/147808/325A6D2FB17357F7AAE5F9E1FCBA54DB.jpeg", "filename": null, "mimetype": "image/jpeg" } } }, "engine": "NOWEB", "environment": { "version": "2024.11.11", "engine": "NOWEB", "tier": "PLUS", "browser": "/usr/bin/chromium" } }, "channelId": "147808" }
I tried to access the image using local url, also unable to access
Hi! Is there any logs may be about storage errors?
"channelId": "147808" Have you modified the source code by any change? We didn't have that properly afaik Just checking, because have seen some errors after that, to make sure we're working with the same code here.
tried to access the image using local url, also unable to access
Do you have WHATSAPP_FILES_LIFETIME set to 0 value and mapped WHATSAPP_FILES_FOLDER to the host?
https://waha.devlike.pro/docs/how-to/storages/#media---local
If you want to use the local storage and save the media files between the container restarts for a long time - you need to:
- Specify a dedicated folder to store the media files using
WHATSAPP_FILES_FOLDER=/app/.mediaenvironment variable - Disable automatic media files cleanup using
WHATSAPP_FILES_LIFETIME=0environment variable - Connect the volume to the specified folder using the
-v /path/to/files/on/host:/app/.mediaoption indocker runcommand to the folder specified inWHATSAPP_FILES_FOLDERenvironment variable.).
Here's all the steps in one command:
docker run -v /path/to/on/host/.media:/app/.media -e WHATSAPP_FILES_FOLDER=/app/.media -e WHATSAPP_FILES_LIFETIME=0 -p 3000:3000/tcp devlikeapro/waha-plus
tried to access the image using local url, also unable to access
Do you have
WHATSAPP_FILES_LIFETIMEset to0value and mappedWHATSAPP_FILES_FOLDERto the host?https://waha.devlike.pro/docs/how-to/storages/#media---local
If you want to use the local storage and save the media files between the container restarts for a long time - you need to:
- Specify a dedicated folder to store the media files using
WHATSAPP_FILES_FOLDER=/app/.mediaenvironment variable- Disable automatic media files cleanup using
WHATSAPP_FILES_LIFETIME=0environment variable- Connect the volume to the specified folder using the
-v /path/to/files/on/host:/app/.mediaoption indocker runcommand to the folder specified inWHATSAPP_FILES_FOLDERenvironment variable.).Here's all the steps in one command:
docker run -v /path/to/on/host/.media:/app/.media -e WHATSAPP_FILES_FOLDER=/app/.media -e WHATSAPP_FILES_LIFETIME=0 -p 3000:3000/tcp devlikeapro/waha-plus
I only set it up, is it my setting problem? WHATSAPP FILES LIFETIME=0
Hi! Is there any logs may be about storage errors?
"channelId": "147808" Have you modified the source code by any change? We didn't have that properly afaik Just checking, because have seen some errors after that, to make sure we're working with the same code here.
I didn’t find the error log, and I didn’t modify the source code. The most important thing is that I couldn’t get the corresponding message again through the API.
I only set it up, is it my setting problem?
Try mapping volume to host system as well This way if you use docker-compose https://github.com/devlikeapro/waha/blob/core/docker-compose.yaml#L14-L20
The most important thing
Looks like it just get lost in network connection :( WAHA didn't manage to save it due to some issues (it does few times, but then gives up). Logs would really help, we'll see what we can find, may be add more retries - if webhook got it, it should hit database as well
I didn’t modify the source code
Oh, nevermind, it has the right payload in request field. looks like some http server with channelId logs, it confused me 👍
I only set it up, is it my setting problem?
Try mapping volume to host system as well This way if you use docker-compose https://github.com/devlikeapro/waha/blob/core/docker-compose.yaml#L14-L20
The most important thing
Looks like it just get lost in network connection :( WAHA didn't manage to save it due to some issues (it does few times, but then gives up). Logs would really help, we'll see what we can find, may be add more retries - if webhook got it, it should hit database as well
I suspect it has something to do with the 2024.11.11 version. I will upgrade to the latest version and continue to observe.