web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

after update the code i am facing this issue urgent help required

Open tayyabakmal1 opened this issue 9 months ago • 3 comments

C:\Users\hp\AppData\Local\Programs\Python\Python313\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 INFO [src.agent.custom_agent] 🤷 Eval: Unknown - The previous goal was to start on a blank page, which is the case here. No actions have been taken yet. INFO [src.agent.custom_agent] 🧠 New Memory: INFO [src.agent.custom_agent] 🤔 Thought: The task is to navigate to google.com, type 'OpenAI' in the search bar, click the search button, and then extract the first URL from the results. The first step is to go to google.com. INFO [src.agent.custom_agent] 🎯 Next Goal: Navigate to google.com INFO [src.agent.custom_agent] 🛠️ Action 1/1: {"go_to_url":{"url":"https://www.google.com"}} INFO [src.agent.custom_agent] 🧠 All Memory:

INFO [controller] 🔗 Navigated to https://www.google.com INFO [src.agent.custom_agent] 📍 Step 2 INFO [src.agent.custom_agent] ✅ Eval: Success - Successfully navigated to google.com. INFO [src.agent.custom_agent] 🧠 New Memory: INFO [src.agent.custom_agent] 🤔 Thought: Now I need to type 'OpenAI' into the search bar, click the search button, and extract the first URL. I can type 'OpenAI' into the textarea with index 5. INFO [src.agent.custom_agent] 🎯 Next Goal: Type 'OpenAI' into the google search bar. INFO [src.agent.custom_agent] 🛠️ Action 1/1: {"input_text":{"index":5,"text":"OpenAI"}} INFO [src.agent.custom_agent] 🧠 All Memory:

INFO [controller] ⌨️ Input OpenAI into index 5 INFO [src.agent.custom_agent] 📍 Step 3 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...ment': {'index': 20}}]}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/missing INFO [src.agent.custom_agent] 📍 Step 3 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...ment': {'index': 20}}]}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/missing INFO [src.agent.custom_agent] 📍 Step 3 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...ment': {'index': 10}}]}}, 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

tayyabakmal1 avatar Mar 26 '25 19:03 tayyabakmal1

which model you used?

warmshao avatar Mar 27 '25 00:03 warmshao

Model: gemini-2.0-flash Task Description: go to google.com and type 'OpenAI' click search and give me the first url

tayyabakmal1 avatar Mar 27 '25 08:03 tayyabakmal1

fixed it, update code and try again.

vvincent1234 avatar Mar 27 '25 11:03 vvincent1234

i am too facing the same problem

Sahrul11 avatar Apr 17 '25 22:04 Sahrul11

update code and try again its fixed after update

tayyabakmal1 avatar Apr 18 '25 07:04 tayyabakmal1

check this pull https://github.com/browser-use/web-ui/pull/452

tayyabakmal1 avatar Apr 18 '25 07:04 tayyabakmal1

Solved thank you🙏🏼

Sahrul11 avatar Apr 18 '25 07:04 Sahrul11

NP

tayyabakmal1 avatar Apr 18 '25 07:04 tayyabakmal1