Skip to content
New issue

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

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

Already on GitHub? # to your account

It's too difficult to use, running your default demo all gives an error #24

Open
HansonJames opened this issue Jan 7, 2025 · 7 comments

Comments

@HansonJames
Copy link

INFO [browser_use] BrowserUse logging setup complete with level info
INFO [root] Anonymized telemetry enabled. See https://github.com/gregpr07/browser-use for more information.

To create a public link, set share=True in launch().
INFO [src.agent.custom_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/5 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 20577
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 2/5 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 20578
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 3/5 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 20578
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 4/5 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 20578
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 5/5 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 20578
ERROR [agent] ❌ Stopping due to 5 consecutive failures
D:\PycharmVenv\browser_use_poject\Lib\site-packages\gradio\components\video.py:340: UserWarning: Video does not have browser-compatible container or codec. Converting to mp4.
warnings.warn(
INFO [src.agent.custom_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/5 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 20577
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 2/5 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 20578
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 3/5 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 20578
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 4/5 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 20578
INFO [src.agent.custom_agent]
📍 Step 1
ERROR [agent] ❌ Result failed 5/5 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 20578
ERROR [agent] ❌ Stopping due to 5 consecutive failures
D:\PycharmVenv\browser_use_poject\Lib\site-packages\gradio\components\video.py:340: UserWarning: Video does not have browser-compatible container or codec. Converting to mp4.
warnings.warn(

@warmshao
Copy link
Collaborator

warmshao commented Jan 7, 2025

show me the options on your webui,and which model you used?

@HansonJames
Copy link
Author

deepseek。

@warmshao
Copy link
Collaborator

warmshao commented Jan 7, 2025

Please remember to uncheck Use Vision option on webui

@HansonJames
Copy link
Author

Okay, it's ready to work. I tried other tasks and they can also be used

@warmshao
Copy link
Collaborator

warmshao commented Jan 7, 2025

Cool, Funny demos can show in #1

@rawwerks
Copy link

rawwerks commented Jan 7, 2025

the basic demo doesn't work...

CleanShot 2025-01-07 at 13 32 22@2x
CleanShot 2025-01-07 at 13 32 43@2x
CleanShot 2025-01-07 at 13 32 51@2x

INFO     [src.agent.custom_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 actions are not relevant as we are starting from an about:blank page.
INFO     [src.agent.custom_agent] 🧠 New Memory: None
INFO     [src.agent.custom_agent] ⏳ Task Progress: None
INFO     [src.agent.custom_agent] 🤔 Thought: I need to open Google in one of the available tabs, perform a search for 'OpenAI', and then extract the first URL from the search results.
INFO     [src.agent.custom_agent] 🎯 Summary: Open Google and search for 'OpenAI'.
INFO     [src.agent.custom_agent] 🛠️  Action 1/2: {"switch_tab":{"page_id":0}}
INFO     [src.agent.custom_agent] 🛠️  Action 2/2: {"go_to_url":{"url":"https://www.google.com"}}
INFO     [src.agent.custom_agent] 🧠 All Memory: 
INFO     [controller] 🔄  Switched to tab 0
INFO     [controller] 🔗  Navigated to https://www.google.com
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 1/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 2/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 3/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 4/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 5/5 times:
 argument of type 'int' is not iterable
ERROR    [agent] ❌ Stopping due to 5 consecutive failures
/Users/raymondweitekamp/.venv/lib/python3.11/site-packages/gradio/components/video.py:340: UserWarning: Video does not have browser-compatible container or codec. Converting to mp4.
  warnings.warn(
bc2c328046cb49d49f399448b0d897df.mp4

@warmshao
Copy link
Collaborator

warmshao commented Jan 8, 2025

the basic demo doesn't work...

CleanShot 2025-01-07 at 13 32 22@2x CleanShot 2025-01-07 at 13 32 43@2x CleanShot 2025-01-07 at 13 32 51@2x

INFO     [src.agent.custom_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 actions are not relevant as we are starting from an about:blank page.
INFO     [src.agent.custom_agent] 🧠 New Memory: None
INFO     [src.agent.custom_agent] ⏳ Task Progress: None
INFO     [src.agent.custom_agent] 🤔 Thought: I need to open Google in one of the available tabs, perform a search for 'OpenAI', and then extract the first URL from the search results.
INFO     [src.agent.custom_agent] 🎯 Summary: Open Google and search for 'OpenAI'.
INFO     [src.agent.custom_agent] 🛠️  Action 1/2: {"switch_tab":{"page_id":0}}
INFO     [src.agent.custom_agent] 🛠️  Action 2/2: {"go_to_url":{"url":"https://www.google.com"}}
INFO     [src.agent.custom_agent] 🧠 All Memory: 
INFO     [controller] 🔄  Switched to tab 0
INFO     [controller] 🔗  Navigated to https://www.google.com
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 1/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 2/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 3/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 4/5 times:
 argument of type 'int' is not iterable
INFO     [src.agent.custom_agent] 
📍 Step 2
ERROR    [agent] ❌ Result failed 5/5 times:
 argument of type 'int' is not iterable
ERROR    [agent] ❌ Stopping due to 5 consecutive failures
/Users/raymondweitekamp/.venv/lib/python3.11/site-packages/gradio/components/video.py:340: UserWarning: Video does not have browser-compatible container or codec. Converting to mp4.
  warnings.warn(

bc2c328046cb49d49f399448b0d897df.mp4

Update latest code and try again.

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

No branches or pull requests

3 participants