-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
auto-gen 0.4.0dev13 WebSurfer Agent Timeout Error with ACA Dynamic Session #4994
Comments
@viswanadula8828 It is a time out error from the web browser. What's the log? It may be hard to avoid time out in case some websites may become inaccessible. Perhaps we can catch the timeout error in web surfer @husseinmozannar @afourney |
A question: does the run crash or does it continue as usual but printing the web surfer error? This web surfer error should already be caught, and this error message is eventually what the web surfer returns. There is no fix for this as some websites sometimes don't load due to either an unstable connection or errors from the website itself. However, the agent and team is not interrupted by such errors |
I get a response from other agents but prints the websurfer error as shown below. This will be an issue when the agent has to get a response only from websurfer
|
What's your desired behavior in your case when loading the website times out? |
may be good to have a fallback mechanism and reason for the timeout ? |
What happened?
I ran a websurfer agent using MagenticOne Group chat with the below code:
Error Log
"Web surfing error:\n\nTraceback (most recent call last):\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/autogen_ext/agents/web_surfer/_multimodal_web_surfer.py\", line 377, in on_messages_stream\n content = await self._generate_reply(cancellation_token=cancellation_token)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/autogen_ext/agents/web_surfer/_multimodal_web_surfer.py\", line 515, in _generate_reply\n return await self._execute_tool(message, rects, tool_names, cancellation_token=cancellation_token)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/autogen_ext/agents/web_surfer/_multimodal_web_surfer.py\", line 662, in _execute_tool\n await self._page.wait_for_load_state()\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/playwright/async_api/_generated.py\", line 9069, in wait_for_load_state\n await self._impl_obj.wait_for_load_state(state=state, timeout=timeout)\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/playwright/_impl/_page.py\", line 567, in wait_for_load_state\n return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/playwright/_impl/_frame.py\", line 243, in wait_for_load_state\n return await self._wait_for_load_state_impl(state, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/vlsk/Documents/AI Work/fantastic-chainsaw/.venv/lib/python3.11/site-packages/playwright/_impl/_frame.py\", line 271, in _wait_for_load_state_impl\n await waiter.result()\nplaywright._impl._errors.TimeoutError: Timeout 30000ms exceeded.\
What did you expect to happen?
No errors
How can we reproduce it (as minimally and precisely as possible)?
User WebSurfer Agent within a MagenticOneChat
AutoGen version
0.4.0dev13
Which package was this bug in
Extensions
Model used
gpt-4o
Python version
3.11
Operating system
MacOS
Any additional info you think would be helpful for fixing this bug
No response
The text was updated successfully, but these errors were encountered: