open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

Error in getUnreadMessages - Accessing TypedArray data over Xrays is slow #91

Open roigreenberg opened 2 years ago

roigreenberg commented 2 years ago

Hi. I encounter a new issue, and I'm not sure how to solve it:

  File "groups_bot/load_driver.py", line 84, in run
    for contact in await driver.get_unread(include_notifications=True):
  File "/app/webwhatsapi/async_driver.py", line 107, in get_unread
    return await self._run_async(self._driver.get_unread,
  File "/app/webwhatsapi/async_driver.py", line 41, in _run_async
    return await result if isinstance(result, Awaitable) else result
  File "/app/webwhatsapi/__init__.py", line 400, in get_unread
    raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count)
  File "/app/webwhatsapi/wapi_js_wrapper.py", line 157, in __call__
    raise JsException("Error in function {0} ({1}). Command: {2}".format(self.function_name, e.msg, command))
webwhatsapi.wapi_js_wrapper.JsException: Error in function getUnreadMessages (Error: Accessing TypedArray data over Xrays is slow, and forbidden in order to encourage performant code. To copy TypedArrays across origin boundaries, consider using Components.utils.cloneInto().). Command: return WAPI.getUnreadMessages(false,true,false, arguments[0])

Does anyone encounter this? any solution?