daijro / camoufox

🦊 Anti-detect browser
https://camoufox.com
Mozilla Public License 2.0
639 stars 49 forks source link

Geoip problem with async Camoufox #31

Closed MaxAndolini closed 1 month ago

MaxAndolini commented 1 month ago

Describe the bug:

After 0.2.6 version, this error pops up;

AttributeError: 'dict' object has no attribute 'endswith'

Screenshots:

image

To Reproduce:

with Camoufox(
    proxy={'server': f'http://{proxy_1[0]}:{proxy_1[1]}', 'username': proxy_1[2],
                                                'password': proxy_1[3]}
) as browser:
    page = browser.new_page()
    page.goto("https://www.browserscan.net")

Version:

0.2.11

daijro commented 1 month ago

Fixed in 0.2.12. The issue was caused by parameters being sent to a method in the wrong order.