Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Proxy with Username Password not working in Botasaurus 4.0.14 #109

Closed
raunaqss opened this issue May 8, 2024 · 2 comments
Closed

Comments

@raunaqss
Copy link

raunaqss commented May 8, 2024

Hi there, when I try to use botasaurus 4 along with an http proxy in the following format:

http://username:pwd@domain-proxy.provider.com:PORT

I am receiving the following error:

Traceback (most recent call last):
  File "/path/to/project/search_handler_bt.py", line 26, in <module>
    print(handler(event))
  File "/path/to/project/venv/lib/python3.10/site-packages/botasaurus/decorators.py", line 656, in wrapper_browser
    current_result = run_task(data_item, False, 0)
  File "/path/to/project/venv/lib/python3.10/site-packages/botasaurus/decorators.py", line 471, in run_task
    ) = create_options_and_driver_attributes_and_close_proxy(
  File "/path/to/project/venv/lib/python3.10/site-packages/botasaurus/create_driver_utils.py", line 302, in create_options_and_driver_attributes_and_close_proxy
    options = add_proxy_options(options, proxy)
  File "/path/to/project/venv/lib/python3.10/site-packages/botasaurus_proxy_authentication/__init__.py", line 30, in add_proxy_options
    new_proxy = create_proxy(proxy)
  File "/path/to/project/venv/lib/python3.10/site-packages/botasaurus_proxy_authentication/__init__.py", line 21, in create_proxy
    return getchain().anonymizeProxy(proxy_url,  timeout=300, authInfo={})
TypeError: Proxy.__call__() got an unexpected keyword argument 'authInfo'

It works fine with the 3.x.x but not with 4.x.x. I could not zip and attach error_log since it was not created. It worked fine without the proxy.

@raunaqss
Copy link
Author

raunaqss commented May 9, 2024

This error is produced only sometimes. I will add an update if I can narrow down the event that leads to its occurrence.

@Chetan11-dev
Copy link
Contributor

Kindly run below command to resolve it.

python -m pip install bota botasaurus_api botasaurus_driver bota botasaurus-proxy-authentication botasaurus_server --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants