Open axel7083 opened 3 years ago
Ditto, I to an getting the same error. Ive tried with python2.7 and python3. Using the private app api.
` File "C:\Users\Preston Meade\AppData\Local\Programs\Python\Python38\lib\site-packages\instagram_private_api\client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "C:\Users\Preston Meade\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 531, in open response = meth(req, response) File "C:\Users\Preston Meade\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 640, in http_response response = self.parent.error( File "C:\Users\Preston Meade\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 569, in error return self._call_chain(args) File "C:\Users\Preston Meade\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain result = func(args) File "C:\Users\Preston Meade\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 405: Method Not Allowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 108, in
i get the same as above. would like to just pull information from the current_user
This error caused by sending a request to the current_user endpoint with the POST method. The current_user endpoint only supports the GET method.
You can fix this issue with #379
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 -V
here:Python 2.7.17
Code:
Error/Debug Log: