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

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

Open
roigreenberg opened this issue Oct 11, 2021 · 0 comments

Comments

@roigreenberg
Copy link

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?

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