wppconnect-team / wppconnect-server

Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.
https://wppconnect.io/swagger/wppconnect-server/
Apache License 2.0
686 stars 401 forks source link

Error on forward message #132

Closed wduandy closed 3 years ago

wduandy commented 3 years ago

Description

Hello! I'm getting the following error when trying to forward a message

rror: 2021-06-28T05:27:53.391Z Cannot read property '_serialized' of undefined - TypeError: Cannot read property '_serialized' of undefined at forwardMessages (/opt/wppconnect-server/src/controller/deviceController.js:327:23) at processTicksAndRejections (internal/process/task_queues.js:97:5) error: 2021-06-28T05:28:00.496Z message is missing critical data needed to download the file. - Error: message is missing critical data needed to download the file. at Whatsapp.<anonymous> (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:319:35) at step (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:64:23) at Object.next (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:45:53) at /opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:39:71 at new Promise (<anonymous>) at __awaiter (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:35:12) at Whatsapp.decryptFile (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:311:16) at getMediaByMessage (/opt/wppconnect-server/src/controller/sessionController.js:217:33) at processTicksAndRejections (internal/process/task_queues.js:97:5) error: 2021-06-28T05:28:01.719Z message is missing critical data needed to download the file. - Error: message is missing critical data needed to download the file. at Whatsapp.<anonymous> (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:319:35) at step (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:64:23) at Object.next (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:45:53) at /opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:39:71 at new Promise (<anonymous>) at __awaiter (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:35:12) at Whatsapp.decryptFile (/opt/wppconnect-server/node_modules/@wppconnect-team/wppconnect/dist/api/whatsapp.js:311:16) at getMediaByMessage (/opt/wppconnect-server/src/controller/sessionController.js:217:33) at processTicksAndRejections (internal/process/task_queues.js:97:5) error: 2021-06-28T05:28:23.495Z Cannot read property '_serialized' of undefined - TypeError: Cannot read property '_serialized' of undefined at forwardMessages (/opt/wppconnect-server/src/controller/deviceController.js:327:23) at processTicksAndRejections (internal/process/task_queues.js:97:5) error: 2021-06-28T05:45:57.974Z Cannot read property '_serialized' of undefined - TypeError: Cannot read property '_serialized' of undefined at forwardMessages (/opt/wppconnect-server/src/controller/deviceController.js:327:23) at processTicksAndRejections (internal/process/task_queues.js:97:5) error: 2021-06-28T05:45:58.176Z Cannot read property '_serialized' of undefined - TypeError: Cannot read property '_serialized' of undefined at forwardMessages (/opt/wppconnect-server/src/controller/deviceController.js:327:23) at processTicksAndRejections (internal/process/task_queues.js:97:5) error: 2021-06-28T05:58:15.774Z Cannot read property '_serialized' of undefined - TypeError: Cannot read property '_serialized' of undefined at forwardMessages (/opt/wppconnect-server/src/controller/deviceController.js:327:23) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5)

Another problem with this method is when i try to forward big files like 80MB+, the webhook crashed for some reason and i need to restart the server to get it work.

hbdbim commented 3 years ago

bug fixed