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

Pin comment [BUG] #1899

Open
SoFo12 opened this issue Apr 29, 2024 · 0 comments
Open

Pin comment [BUG] #1899

SoFo12 opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SoFo12
Copy link

SoFo12 commented Apr 29, 2024

Describe the bug
When tried to pin the comment have the error. Comment is exist.

To Reproduce
comment = self.account_manager.cl.media_comment(media.id, comment) self.account_manager.cl.comment_pin(media.id, comment.pk) if pin else None

Traceback
Traceback (most recent call last):
File "/Users/personal/DEV/video/account_manage/instagram_post_manager.py", line 45, in post
self.leave_comment(media, "Test Message")
File "/Users/personal/DEV/video/account_manage/instagram_post_manager.py", line 64, in leave_comment
self.account_manager.cl.comment_pin(media.id, comment.pk) if pin else None
File "/Users/personal/mambaforge/envs/video/lib/python3.9/site-packages/instagrapi/mixins/comment.py", line 249, in comment_pin
result = self.private_request(
File "/Users/personal/mambaforge/envs/video/lib/python3.9/site-packages/instagrapi/mixins/private.py", line 542, in private_request
raise e
File "/Users/personal/mambaforge/envs/video/lib/python3.9/site-packages/instagrapi/mixins/private.py", line 527, in private_request
self._send_private_request(endpoint, **kwargs)
File "/Users/personal/mambaforge/envs/video/lib/python3.9/site-packages/instagrapi/mixins/private.py", line 466, in _send_private_request
raise ClientError(e, response=e.response, **last_json)
instagrapi.exceptions.ClientError: 405 Client Error: Method Not Allowed for url: https://i.instagram.com/api/v1/media/someid/pin_comment/somepk/

Expected behavior
Comment pinned

Desktop (please complete the following information):

  • OS: [MAC OS 13.0.1]
  • Python version [3.9.19]
  • instagrapi version [2.1.1]
@SoFo12 SoFo12 added the bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant