browser-use stuck at 'Step 1' with blank Chromium page, what causes it and how to fix it?
Running browser-use 0.1.40 on Ubuntu 22.04 in a conda env with Python 3.11, a user installed Playwright per the README, put the OpenAI key in a .env file, and ran example.py. Chromium opens on a blank page while the console repeats 'Step 1' endlessly, and examples/simple.py behaves the same way. What causes this and how can it be fixed?
Originally asked on GitHub: https://github.com/browser-use/browser-use/issues/1020
6 answers
The thread was closed without a single confirmed root cause. Commenters reported three different causes: a mismatched Playwright/Chromium install, an OpenAI quota error that was not shown in the logs, and a model without tool-calling support.
-
Playwright install mismatch. The README's
playwright installline installs browser binaries, not the Playwright package. One user had installed Playwright with npm, which led to a Chromium version-not-found error. They rannpm uninstall playwrightandnpm uninstall playwright -g, thenpip install playwrightandplaywright install. The thread does not confirm whether this resolved the loop. -
Hidden API errors. Several users hit
RateLimitError: 429 insufficient_quotafrom OpenAI. browser-use kept retrying the steps without printing the error. A maintainer asked reporters to addBROWSER_USE_LOGGING_LEVEL=debugto.envand look forAgent pausedin the logs. No commenter confirmed seeing that message. -
Model without tool calling. A user whose DeepSeek-V3 vendor did not support tool calls, and another using llama3, saw the loop. Switching to a vendor that supports tool calls, or to llama3.1, fixed it for them.
General advice: check your API quota and confirm the model supports tool calling before reinstalling Playwright.
Did this work for you?-
What @illtellyoulater tried on GitHub (Outcome unclear)
Removed the npm-installed Playwright with
npm uninstall playwrightandnpm uninstall playwright -g, then installed it withpip install playwrightand ranplaywright install.Source: https://github.com/browser-use/browser-use/issues/1020#issuecomment-2722695671 (opens external site)
Did this work for you?What @Buzimu tried on GitHub (Worked)
Switched from llama3, which does not support tool calling, to llama3.1, and the agent started producing steps.
Source: https://github.com/browser-use/browser-use/issues/1020#issuecomment-2731379921 (opens external site)
Did this work for you?What @MaoMao0350 tried on GitHub (Outcome unclear)
Suggested setting a breakpoint in
browser_use/agent/service.pynear line 373 to inspect the exception. The commenter reported the RateLimitError (429, insufficient_quota) but did not say the breakpoint revealed it.Source: https://github.com/browser-use/browser-use/issues/1020#issuecomment-2723344034 (opens external site)
Did this work for you?What @pppp606 tried on GitHub (Outcome unclear)
Maintainer asked the reporter to add
BROWSER_USE_LOGGING_LEVEL=debugto.envand look forAgent pausedin the logs. No commenter confirmed seeing that message.Source: https://github.com/browser-use/browser-use/issues/1020#issuecomment-2723380273 (opens external site)
Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Installed browser-use per the README in a conda env with Python 3.11, saved
OPENAI_API_KEYin.env, and ran example.py and examples/simple.py. Both opened a blank Chromium page and looped on Step 1.Source: https://github.com/browser-use/browser-use/issues/1020 (opens external site)
Did this work for you?
Related questions
- How to fix browser-use PostHog SSL CERTIFICATE_VERIFY_FAILED error?
- How to pause browser-use and ask a human for input mid-run?
- browser-use agent stuck at Step 1 with Chromium on about:blank page
- How do I use OpenRouter with browser-use for DeepSeek when it fails with 429 or 'Could not parse response'?
- browser-use SSLError to eu.i.posthog.com: how do I disable the telemetry call?