subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

[BUG] ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 502 Bad Gateway') #721

Closed ItzmeSwapy closed 2 years ago

ItzmeSwapy commented 2 years ago

ProxyError HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/feed/timeline/ (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 502 Bad Gateway')))

Can you please elaborate what causes this issue. If it's proxy issue what exactly can I do to resolve this with my proxy provider as this issue arises only when multi-threading is done.

ItzmeSwapy commented 2 years ago

HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /rupload_igvideo/1655323432409_0_7080124275 (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

This is another type of error that I observe

ItzmeSwapy commented 2 years ago

Is this happening because I am multi-threading and Instagrapi uses python requests. Is it like using something like asyncIO improves such issues.

adw0rd commented 2 years ago

@ItzmeSwapy your proxy provider says "Tunnel connection failed: 502 Bad Gateway", can you write your question to it? My provider works fine