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

IgNotFoundError: POST /api/friendship/destroy/ - 404 Not Found #1798

Open
3 of 6 tasks
rlopes528 opened this issue Sep 4, 2024 · 0 comments
Open
3 of 6 tasks

IgNotFoundError: POST /api/friendship/destroy/ - 404 Not Found #1798

rlopes528 opened this issue Sep 4, 2024 · 0 comments
Labels
bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin

Comments

@rlopes528
Copy link

Bug Report

Read the Notes and fill out the form.

Notes

Your issue will be closed if you violate any rule below.

  • You need to include a meaningful section of your code
    (not your entire project and not a single line).
  • Please do not add screenshots as they're not easy to work with.
  • Errors like IgActionSpamError (feedback_required), IgCheckpointError (challenge_required), checkpont_required, login_required
    are "common" and there are multiple issues, search here.
  • You can delete this section after reading it.

Form

Put an [x] if you meet the condition, else leave [ ].

Requirements

Platform

  • I'm using Node.js version 18.0.0
  • I'm using electron

Description

We can't use unfollow action. An error occurred on ig.friendship.destroy method.

Code

js
async function Unfollow(msg) {
  try {
    var { followerId } = JSON.parse(msg);

    await ig.friendship.destroy(followerId);
  } catch (e) {
    console.log({ e });
  }

Error and Output

Error Screenshot

IgNotFoundError: POST /api/v1/friendships/destroy/{id}/ - 404 Not Found; 
at Request.handleResponseError (/data/data/com.exemple/files/nodejs-project/node_modules/instagram-private-api/dist/core/request.js:103:20)
at Request.send (/data/data/com.exemple/files/nodejs-project/node_modules/instagram-private-api/dist/core/request.js:54:28)
at async FriendshipRepository.change (/data/data/com.exemple/files/nodejs-project/node_modules/instagram-private-api/dist/repositories/friendship.repository.js:46:26)
at async Unfollow (/data/data/com.exemple/files/nodejs-project/main.js:193:5)
at async EventChannel.<anonymous> (/data/data/com.exemple/files/nodejs-project/main.js:19:9)
@rlopes528 rlopes528 added bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin
Projects
None yet
Development

No branches or pull requests

1 participant