Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update URL from localhost to 127.0.0.1
YangQuanf92ae484dc2a
diff --git a/browser_use/browser/watchdogs/local_browser_watchdog.py b/browser_use/browser/watchdogs/local_browser_watchdog.pyindex a5460345c..8172c22ba 100644--- a/browser_use/browser/watchdogs/local_browser_watchdog.py+++ b/browser_use/browser/watchdogs/local_browser_watchdog.py@@ -367,10 +367,10 @@ class LocalBrowserWatchdog(BaseWatchdog):while asyncio.get_event_loop().time() - start_time < timeout:try:async with aiohttp.ClientSession() as session:- async with session.get(f'http://localhost:{port}/json/version') as resp:+ async with session.get(f'http://127.0.0.1:{port}/json/version') as resp:if resp.status == 200:# Chrome is ready- return f'http://localhost:{port}/'+ return f'http://127.0.0.1:{port}/'else:# Chrome is starting up and returning 502/500 errorsawait asyncio.sleep(0.1)