Bug: 'str' object has no attribute 'pop'
envgap__browser-use__browser-use-4224
01 / FAILURE SIGNATURE
As reported upstream
ERROR [5-flash] 💥 API call failed after 0.09s: AttributeError: 'str' object has no attribute 'pop'
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
b2c69a68a893eb0c1746a2b1b7dbd480fc951c3f- Manifest
pyproject.toml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
browser-use/browser-use #4224 · read the original issue
### Browser Use Version
0.12.0
### Bug Description, Steps to Reproduce, Screenshots
When using the latest version of browser use (0.12.0), running the example script yields an error
Usage model: Gemini
error screenshot:
<img width="982" height="143" alt="Image" src="https://github.com/user-attachments/assets/fd59d1fc-009c-4cbd-8d12-ddb900e58ebb" />
Additional note: Currently, I have been downgraded to 0.11.13 and am using it normally
### Failing Python Code
```python
from browser_use import Agent, ChatGoogle
from dotenv import load_dotenv
import asyncio
load_dotenv()
async def main():
llm = ChatGoogle(model="gemini-flash-latest")
task = "Find the number 1 post on Show HN"
agent = Agent(task=task, llm=llm)
await agent.run()
if __name__ == "__main__":
asyncio.run(main())
```
### LLM Model
Most Gemini
### Operating System & Browser Versions
window10
### Full DEBUG Log Output
```shell
ERROR [5-flash] 💥 API call failed after 0.09s: AttributeError: 'str' object has no attribute 'pop'
WARNING [Agent] ⚠️ LLM error (ModelProviderError: 'str' object has no attribute 'pop') but no fallback_llm co
nfigured
WARNING [Agent] ❌ Result failed 1/6 times: 'str' object has no attribute 'pop'
```04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]