BrowserUse example not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the BrowserUse Python example at the linked Browserbase documentation page and compare its Playwright error-handling path with the logged traceback. Investigate why the dispatched message lacks the expected error key; done means the example runs without this KeyError and the failure, if any, is reported normally.
Written by the indexing model from the issue text.
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'
- Dominant language
- Python
- Stars
- 93
- Forks
- 16
- Avg merge
- 11m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from browserbase/sdk-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
browserbase/sdk-python#182 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
browserbase/sdk-python#180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
browserbase/sdk-python#179 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
browserbase/sdk-python#178 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
browserbase/sdk-python#176 ·
All issues in browserbase/sdk-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·