ClientConnectionError #261
Replies: 2 comments
-
Most likely, your proxy server or net-provider is blocking or not able to https, this is written in the traceback |
Beta Was this translation helpful? Give feedback.
-
For me, the mistake I was making was in the line where it should have been cl.set_proxy( "http://username:password@host:port” ) took a long while to spot |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I tried to log in based on:
from instagrapi import Client
cl = Client()
cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)
and the ClientConnectionError happened, the detail as shown below:
File "/Users/zhangql/opt/anaconda3/lib/python3.7/site-packages/instagrapi/mixins/private.py", line 296, in _send_private_request
"{e.class.name} {e}".format(e=e))
ClientConnectionError: ConnectionError HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/accounts/contact_point_prefill/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x106946d10>: Failed to establish a new connection: [Errno 60] Operation timed out'))
So what should I do to solve this problem and thanks everyone!
Beta Was this translation helpful? Give feedback.
All reactions