python-proxy icon indicating copy to clipboard operation
python-proxy copied to clipboard

Unknown remote protocol for connection to socks5 with username and password.

Open Robin-hhc opened this issue 4 years ago • 0 comments

pproxy -r socks5://my host:port#username:password --test http://google.com When I run this command above to test my connection, the following exception raised.

============ my host:port ============ Traceback (most recent call last): File "/home/work/.local/lib/python3.6/site-packages/pproxy/server.py", line 860, in test_url reader, writer = await roption.prepare_connection(reader, writer, host_name, port) File "/home/work/.local/lib/python3.6/site-packages/pproxy/server.py", line 297, in prepare_connection await self.rproto.connect(reader_remote=reader_remote, writer_remote=writer_remote, rauth=self.auth, host_name=whost, port=wport, writer_cipher_r=writer_cipher_r, myhost=self.host_name, sock=writer_remote.get_extra_info('socket')) File "/home/work/.local/lib/python3.6/site-packages/pproxy/proto.py", line 259, in connect assert await reader_remote.read_n(2) == b'\x05\x02' AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/work/.local/bin/pproxy", line 8, in sys.exit(main()) File "/home/work/.local/lib/python3.6/site-packages/pproxy/server.py", line 912, in main asyncio.get_event_loop().run_until_complete(test_url(args.test, args.rserver)) File "/usr/local/python3/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/home/work/.local/lib/python3.6/site-packages/pproxy/server.py", line 863, in test_url raise Exception('Unknown remote protocol') Exception: Unknown remote protocol

Also, I have checked this proxy and I am sure it works well.

Robin-hhc avatar Jul 12 '21 06:07 Robin-hhc