ProxyBroker icon indicating copy to clipboard operation
ProxyBroker copied to clipboard

UserWarning: Not found judges for the protocol (proxybroker\checker.py:105)

Open Danil-e opened this issue 5 years ago • 3 comments

Suddenly, a warning began to appear and the checker stopped working (only the parser). Reinstalling packages and even a python did not help. Console: ...\proxybroker\checker.py:105: UserWarning: Not found judges for the ['HTTP', 'HTTPS'] protocol. Checking proxy on protocols ['HTTP', 'CONNECT:80', 'SOCKS4', 'SOCKS5', 'HTTPS', 'SMTP'] is disabled. UserWarning,

Danil-e avatar Jun 18 '19 18:06 Danil-e

Have same issue how to make it auto retry when found this Warning ?

DarKWinGTM avatar Jun 22 '19 11:06 DarKWinGTM

Getting the same warning as well. Tried handling it but havn't found anything that works so far.

MikeZ77 avatar Jul 02 '19 00:07 MikeZ77

Have same issue how to make it auto retry when found this Warning ?

This is the way I am handling it:

	try: 
		loop = asyncio.get_event_loop()
		loop.run_until_complete(asyncio.wait_for(task, 30))
	except asyncio.TimeoutError:
		print("RETRYING PROXIES ...")

Pass wait_for() the task that runs the coroutines and the number of seconds to wait. From the documentation:

If a timeout occurs, it cancels the task and raises asyncio.TimeoutError

MikeZ77 avatar Jul 16 '19 06:07 MikeZ77