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

Reading id's from sender.id or message.id sometimes returns a error: TypeError: Cannot read properties of null (reading 'id') #3209

Open
1 task done
TVARecordings opened this issue May 12, 2024 · 0 comments

Comments

@TVARecordings
Copy link

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?

Business account

Mode

EASY API/CLI

Current Behavior

So, ever since the WA framework got updated, that annoying "TypeError: Cannot read properties of null (reading 'id')" error keeps popping up at random intervals, out of the blue.

It's not tied to any specific function; it just seems to happen randomly you try to read message.id or sender.id.

Expected Behavior

To read the property of sender.id or message.id

Steps To Reproduce

Try to access a message.id or sender.id

create() code OR full CLI command + CONFIG

const configObject = {
  sessionId: 'aName',
  authTimeout: 0,
  cacheEnabled: true,
  useChrome: true,
  cachedPatch: true,
  devtools: false,
  //chromiumArgs: ['--no-sandbox'],
  headless: true, //new
  popup: false,
  qrTimeout: 0,
  messagePreprocessor: "AUTO_DECRYPT", //"AUTO_DECRYPT","SCRUB"
  linkParser: "https://link.openwa.cloud/api",
  discord: '',
  ezqr: true,
  callTimeout: 1200000, // 600000
  screenshotOnInitializationBrowserError: false,
  hostNotificationLang: 'nl-nl',
  killProcessOnBrowserClose: true,
  killProcessOnTimeout: false,
  logConsole: true,
  logFile: true,
  onError: "LOG_AND_FALSE",
  blockCrashLogs: true,

};

DEBUG INFO

{
  "WA_VERSION": "2.3000.1013449566",
  "WA_AUTOMATE_VERSION": "4.71.9 UPDATE AVAILABLE: 4.71.10",
  "BROWSER_VERSION": "Chrome/124.0.6367.119",
  "START_TS": 1715453973954,
  "RAM_INFO": "Total: 68.62 GB | Free: 48.39 GB",
  "PPTR_VERSION": "19.11.1",
  "LATEST_VERSION": false,
  "CLI": false,
  "PATCH_HASH": "CACHED-13180",
  "LAUNCH_TIME_MS": 6804,
  "ACC_TYPE": "BUSINESS",
  "chats": 102,
  "messages": 114,
  "contacts": 2433,
  "isBiz": true,
  "isMd": true,
  "INSTANCE_ID": "1f6de42f-7816-43af-ba42-354b363cb1fe"
}

Environment

- OS: Windows 10
- Node: 20.11.1
- npm: 10.2.4

Screenshots/Logs

No response

Anything else?

No response

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