Skip to content

Browser opens but does not goes ahead of about page #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
parthk2510 opened this issue Mar 26, 2025 · 5 comments
Open

Browser opens but does not goes ahead of about page #444

parthk2510 opened this issue Mar 26, 2025 · 5 comments

Comments

@parthk2510
Copy link

Entire terminal overview :
INFO [agent] 🚀 Starting task: Give me a dataset for Robotic process automation
INFO [src.agent.custom_agent]
📍 Step 1
INFO [src.agent.custom_agent] 🤷 Eval: Unknown - The previous state was an empty page, so there's no previous goal to evaluate.
INFO [src.agent.custom_agent] 🧠 New Memory:
INFO [src.agent.custom_agent] 🤔 Thought: The task is to find a dataset for Robotic Process Automation. I should start by searching the web for relevant datasets.
INFO [src.agent.custom_agent] 🎯 Next Goal: Search the web for datasets related to Robotic Process Automation.
INFO [src.agent.custom_agent] 🛠️ Action 1/1: {}
INFO [src.agent.custom_agent] 🧠 All Memory:

INFO [src.agent.custom_agent]
📍 Step 2
INFO [src.agent.custom_agent] ✅ Eval: Success - A new tab has been opened with a Google search for 'Robotic Process Automation dataset'.
INFO [src.agent.custom_agent] 🧠 New Memory:
INFO [src.agent.custom_agent] 🤔 Thought: Now that I have the search results, I need to switch to that tab to find a suitable dataset.
INFO [src.agent.custom_agent] 🎯 Next Goal: Switch to the newly opened tab with the Google search results.
INFO [src.agent.custom_agent] 🛠️ Action 1/1: {}
INFO [src.agent.custom_agent] 🧠 All Memory:

INFO [src.agent.custom_agent]
📍 Step 3
INFO [src.agent.custom_agent] ❌ Eval: Failed - The current URL is still 'about:blank', indicating that the previous action to switch tabs was unsuccessful. The tab might not have loaded yet.
INFO [src.agent.custom_agent] 🧠 New Memory:
INFO [src.agent.custom_agent] 🤔 Thought: The previous action failed because the new tab might not have finished loading. I should wait for the tab to load before switching to it.
INFO [src.agent.custom_agent] 🎯 Next Goal: Wait for the tab to load, then switch to it.
INFO [src.agent.custom_agent] 🛠️ Action 1/1: {"wait":{}}
INFO [src.agent.custom_agent] 🧠 All Memory:

INFO [controller] 🕒 Waiting for 3 seconds
INFO [src.agent.custom_agent]
📍 Step 4
ERROR [agent] ❌ Result failed 1/3 times:
Invalid model output format. Please follow the correct schema.
Details: 1 validation error for CustomAgentOutput
action
Field required [type=missing, input_value={'current_state': {'evalu...ction': [{'wait': {}}]}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/missing
INFO [src.agent.custom_agent]
📍 Step 4
ERROR [agent] ❌ Result failed 2/3 times:
Invalid model output format. Please follow the correct schema.
Details: 1 validation error for CustomAgentOutput
action
Field required [type=missing, input_value={'current_state': {'evalu...ction': [{'wait': {}}]}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/missing
INFO [src.agent.custom_agent]
📍 Step 4
ERROR [agent] ❌ Result failed 3/3 times:
Invalid model output format. Please follow the correct schema.
Details: 1 validation error for CustomAgentOutput
action
Field required [type=missing, input_value={'current_state': {'evalu...Automation+dataset'}}]}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/missing
ERROR [src.agent.custom_agent] ❌ Stopping due to 3 consecutive failures
INFO [agent] Created GIF at agent_history.gif

Image

@THEBROS765
Copy link

same here i hope there is a solution maybe changing the browser or something

@THEBROS765
Copy link

mine error

To create a public link, set share=True in launch().
C:\Users\jaish\OneDrive\Desktop\ai agent\web-ui.venv\Lib\site-packages\browser_use\agent\message_manager\views.py:59: LangChainBetaWarning: The function load is in beta. It is actively being worked on, so the API may change.
value['message'] = load(value['message'])
INFO [agent] 🚀 Starting task: go to google.com and type 'OpenAI' click search and give me the first url
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 1/3 times:
Failed to deserialize the JSON body into the target type: messages[1]: data did not match any variant of untagged enum ChatCompletionRequestContent at line 1 column 14062
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 2/3 times:
Failed to deserialize the JSON body into the target type: messages[1]: data did not match any variant of untagged enum ChatCompletionRequestContent at line 1 column 14062
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [browser] Failed to update state: Page.evaluate: Target page, context or browser has been closed
ERROR [agent] ❌ Result failed 3/3 times:
Failed to deserialize the JSON body into the target type: messages[1]: data did not match any variant of untagged enum ChatCompletionRequestContent at line 1 column 14062
ERROR [src.agent.custom_agent] ❌ Stopping due to 3 consecutive failures
INFO [agent] Created GIF at agent_history.gif

help mee

@eggnogg5
Copy link

@AliYmn posted a solution in #366 #399 that may help you. It did not work for me, but referencing it here.

@warmshao
Copy link
Collaborator

which model you guys used?

@vvincent1234
Copy link
Contributor

fixed it, please try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants