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

No proxy satisfying given conditions. #3

Closed
lav13enrose opened this issue Jul 20, 2020 · 2 comments
Closed

No proxy satisfying given conditions. #3

lav13enrose opened this issue Jul 20, 2020 · 2 comments

Comments

@lav13enrose
Copy link

i got error output, this repo doesnt give any clues so here's the issue

Error Output
random_proxies.proxies.exception.NoSuchProxyError: No proxy satisfying given conditions.

im testing it as the readme writed
from random_proxies import random_proxy random_proxy()

@g0per
Copy link
Contributor

g0per commented Jul 20, 2020

>>> from random_proxies import random_proxy
>>> random_proxy()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python38\lib\site-packages\random_proxies\proxies\proxy.py", line 56, in random_proxy
    return pop(new_conditions)
  File "C:\Python38\lib\site-packages\random_proxies\proxies\db.py", line 22, in pop
    raise NoSuchProxyError('No proxy satisfying given conditions.')
random_proxies.proxies.exception.NoSuchProxyError: No proxy satisfying given conditions.

Cache server is currently inop. Workaround at #2 , by bypassing cache server with use_cache=False

@lav13enrose
Copy link
Author

Fixed by using
random_proxy(use_cache=False)
thanks to @g0per
closing this issue now

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