Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

BrowserUse example not working

Đang mở
#144 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
playwright, python
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện ví dụ Python của BrowserUse trên trang tài liệu Browserbase được liên kết và so sánh đường dẫn xử lý lỗi của Playwright với traceback đã ghi lại. Điều tra lý do thông báo được gửi đi thiếu khóa error như mong đợi; được xem là hoàn tất khi ví dụ chạy mà không gặp KeyError này và lỗi, nếu có, được báo cáo bình thường.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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'
Ngôn ngữ chính
Python
Star
93
Fork
16
Merge trung bình
11 phút
Pull request đã merge (30 ngày)
3

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của browserbase/sdk-python

Tất cả issue của browserbase/sdk-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.