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

Proxy Error #19

Open
aditya-pushkar opened this issue Feb 9, 2022 · 4 comments
Open

Proxy Error #19

aditya-pushkar opened this issue Feb 9, 2022 · 4 comments

Comments

@aditya-pushkar
Copy link

Application is not running after using valid proxies

@hoemotion
Copy link
Owner

Make sure the format is correct

@aditya-pushkar
Copy link
Author

aditya-pushkar commented Feb 9, 2022

proxy:port
proxy:port
proxy:port

Is This correct format ?

@hoemotion
Copy link
Owner

proxy:port proxy:port proxy:port

Is This correct format ?

Yes if you dont use proxies which need an authentication

@GaryGallo1
Copy link

GaryGallo1 commented Feb 19, 2022

Is it works with socks5?
I entered in proxies.txt username:password@ip:port and choose socks5 in console, but getting:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client_reqrep.py", line 898, in start        
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\streams.py", line 616, in read
    await self._waiter
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client_proto.py", line 213, in data_received 
    messages, upgraded, tail = self._parser.feed_data(data)
  File "aiohttp\_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message='Expected HTTP/'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\Proj\discord-mass-dm\main.py", line 364, in join
    async with hoemotion.post("https://discord.com/api/v9/invites/%s" % (self.invite), json={}, proxy=proxy) as response:
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 535, in _request
    conn = await self._connector.connect(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 905, in _create_connection
    _, proto = await self._create_proxy_connection(req, traces, timeout)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 1275, in _create_proxy_connection
    resp = await proxy_resp.start(conn)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client_reqrep.py", line 900, in start        
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Expected HTTP/', url=URL('socks5://username:password@ip:port')    

BWT, http works fine.

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

3 participants