My browser automation agent is stuck in an endless loop and throwing Pydantic errors, how do I actually fix this?
Discussions on Python.org
My browser automation agent is stuck in an endless loop and throwing Pydantic errors, how do I actually fix this?
So I tried setting up a LangChain Playwright agent to automate posting to Reddit, and man… it is driving me insane. It starts off fine, navigates to the links, but then it completely loses its mind trying to find input fields. It just keeps looping—retrying get_elements, going back and forth between pages, waiting for 5 seconds over and over again, and getting []every single time. And then to top it all off, it finally crashes completely with a Pydantic validation error (Field required [type=mi...
0 comments
No comments yet.