Proxy config proxy_config=... throws error: 'dict' object has no attribute 'server' in BrowserConfig #974
Unanswered
prokhorenkomykhailo
asked this question in
Forums - Q&A
Replies: 2 comments 3 replies
-
Did you find a solution for this? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Any updates on this issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Crawl4AI team 👋
I'm using AsyncWebCrawler with BrowserConfig in a Python script, and I'm trying to configure proxies using the proxy_config parameter. Here's the relevant part of my setup:
And then passed into the crawler:
The proxy credentials are working fine — I've verified them using other tools — but when I run the crawler, it fails with:
AttributeError: 'dict' object has no attribute 'server'
I double-checked the Crawl4AI documentation and examples, and it seems like my structure should be valid. It looks like the proxy_config argument might expect an actual ProxyConfig object, not a raw dict.
If that's the case, could you confirm what format or class the proxy_config should be, and whether there’s a helper or constructor for that? If I’m supposed to use something like ProxyConfig(server=..., username=..., password=...), I couldn’t find that in the docs.
Furthermore, I have used this code 1month ago, and they were working really fine, but for now, it's not working with the exact same code and same proxy config.
Please let me konw how I can fix this.
Thanks for your help
Best,
Mykhailo
Beta Was this translation helpful? Give feedback.
All reactions