You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To illustrate the problem, I copied the NavigateTool from langchain-community into local. When I tried to run the simplified agent as illustrated in the code, I got the error
RuntimeError('unable to perform operation on <WriteUnixTransport closed=True reading=False 0xffff8ff9ec20>; the handler is closed')
The error is not reported when I do not have anything after the page.goto(url). However, if I add
response = await page.goto(url)
print("here is the response", response)
Async Browser reports
handler is closed
Problem
To illustrate the problem, I copied the
NavigateTool
fromlangchain-community
into local. When I tried to run the simplified agent as illustrated in the code, I got the errorThe error is not reported when I do not have anything after the
page.goto(url)
. However, if I addThe above error appeared.
Screen.Recording.2025-01-25.at.12.50.32.PM.mov
Sync Browser not allowed for BrowserTool
Problem
Take
NavigateTool
as an example. For the sync code below, I got the below error if input a url and click submit. Why is async browser required for it?Screen.Recording.2025-01-25.at.12.42.35.PM.mov
The text was updated successfully, but these errors were encountered: