Skip to content

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

Description

@roigreenberg

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions