- 
                Notifications
    You must be signed in to change notification settings 
- Fork 7
Open
Description
Hi,
I was trying to follow the browseruse example here
The code errors with keyerror pointing to some error handling in playwright. Logs and error below. Thanks!
INFO     [browser_use] BrowserUse logging setup complete with level info
INFO     [root] Anonymized telemetry enabled. See https://docs.browser-use.com/development/telemetry for more information.
INFO     [agent] 🚀 Starting task: Compare the price of gpt-4o and DeepSeek-V3
INFO     [agent] 📍 Step 1
INFO     [browser] Connecting to remote browser via WSS wss://connect.usw2.browserbase.com?signingKey=eyJhbGci...
Error occurred in event listener
Traceback (most recent call last):
  File "/Users/otto/Documents/computer-use-explorations/.venv/lib/python3.11/site-packages/pyee/asyncio.py", line 77, in _emit_run
    coro: Any = f(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^
  File "/Users/otto/Documents/computer-use-explorations/.venv/lib/python3.11/site-packages/playwright/_impl/_json_pipe.py", line 64, in <lambda>
    lambda params: handle_message(params["message"]),
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/otto/Documents/computer-use-explorations/.venv/lib/python3.11/site-packages/playwright/_impl/_json_pipe.py", line 54, in handle_message
    self.on_message(cast(ParsedMessagePayload, message))
  File "/Users/otto/Documents/computer-use-explorations/.venv/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 240, in <lambda>
    self._transport.on_message = lambda msg: self.dispatch(msg)
                                             ^^^^^^^^^^^^^^^^^^
  File "/Users/otto/Documents/computer-use-explorations/.venv/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 393, in dispatch
    error["error"], format_call_log(msg.get("log"))  # type: ignore
    ~~~~~^^^^^^^^^
KeyError: 'error'
Metadata
Metadata
Assignees
Labels
No labels