Which client are you using?
Describe the Bug/Error:
Simply calling the current_user method leads to a 405 error, the endpoint probably changed.
Paste the output of python -V here:
Python 2.7.17
Code:
from instagram_private_api import Client, ClientCompatPatch
user_name = 'username'
password = 'password'
api = Client(user_name, password)
api.current_user()
Error/Debug Log:
---------------------------------------------------------------------------
ClientConnectionError Traceback (most recent call last)
<ipython-input-14-47a9f5747eaf> in <module>()
----> 1 api.current_user()
C:\Users\axels\MiniConda3\envs\py27\lib\site-packages\instagram_private_api\endpoints\accounts.pyc in current_user(self)
77 """Get current user info"""
78 params = self.authenticated_params
---> 79 res = self._call_api('accounts/current_user/', params=params, query={'edit': 'true'})
80 if self.auto_patch:
81 ClientCompatPatch.user(res['user'], drop_incompat_keys=self.drop_incompat_keys)
C:\Users\axels\MiniConda3\envs\py27\lib\site-packages\instagram_private_api\client.pyc in _call_api(self, endpoint, params, query, return_response, unsigned, version)
532 ConnectionError) as connection_error:
533 raise ClientConnectionError('{} {}'.format(
--> 534 connection_error.__class__.__name__, str(connection_error)))
535
536 if return_response:
ClientConnectionError: URLError <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
Which client are you using?
instagram_private_api/)instagram_web_api/)Describe the Bug/Error:
Simply calling the current_user method leads to a 405 error, the endpoint probably changed.
Paste the output of
python -Vhere:Python 2.7.17Code:
Error/Debug Log: