Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decryptMedia returns an error #3236

Open
1 task done
BbayuGt opened this issue Aug 8, 2024 · 1 comment
Open
1 task done

decryptMedia returns an error #3236

BbayuGt opened this issue Aug 8, 2024 · 1 comment

Comments

@BbayuGt
Copy link
Contributor

BbayuGt commented Aug 8, 2024

Are you using the latest version of the library?

  • I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

decryptMedia returns

{
  error: {
    message: "Cannot read properties of undefined (reading 'mimetype')",
    stack: "TypeError: Cannot read properties of undefined (reading 'mimetype')\n    at Client.<anonymous> (/usr/src/app/node_modules/@open-wa/wa-automate/dist/api/Client.js:1773:20)\n    at Generator.next (<anonymous>)\n    at /usr/src/app/node_modules/@open-wa/wa-automate/dist/api/Client.js:31:71\n    at new Promise (<anonymous>)\n    at __awaiter (/usr/src/app/node_modules/@open-wa/wa-automate/dist/api/Client.js:27:12)\n    at Client.decryptMedia (/usr/src/app/node_modules/@open-wa/wa-automate/dist/api/Client.js:1766:16)\n    at /usr/src/app/node_modules/@open-wa/wa-automate/dist/cli/server.js:525:53\n    at Generator.next (<anonymous>)\n    at /usr/src/app/node_modules/@open-wa/wa-automate/dist/cli/server.js:31:71\n    at new Promise (<anonymous>)",
  },
}

Expected Behavior

media decrypted

Steps To Reproduce

use decryptmedia(message)

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.3000.1015491093",
  "WA_AUTOMATE_VERSION": "4.72.0",
  "BROWSER_VERSION": "HeadlessChrome/127.0.6533.99",
  "START_TS": 1723079158858,
  "RAM_INFO": "Total: 14.38 GB | Free: 10.73 GB",
  "PPTR_VERSION": "19.11.1",
  "LATEST_VERSION": true,
  "CLI": true,
  "PATCH_HASH": "08b09",
  "LAUNCH_TIME_MS": 31344,
  "ACC_TYPE": "PERSONAL",
  "chats": 121,
  "messages": 372,
  "contacts": 3249,
  "isBiz": false,
  "isMd": true,
  "INSTANCE_ID": "e01c6bef-ccb6-4eb8-b5db-026cfc88f7a0"
}

Environment

- OS: Linux 6.10
- Node: 22.6.0
- npm: 10.8.2

Screenshots/Logs

No response

Anything else?

No response

@BbayuGt
Copy link
Contributor Author

BbayuGt commented Aug 8, 2024

One more, editMessage also seems to be fail silently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant