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
API Endpoint not found #1770
Labels
Comments
RodrigoSKohl
added
bug
unconfirmed
This issue hasn't been read/confirmed/accepted by an admin
labels
Apr 9, 2024
I can confirm this and this doesn't happen after I remove the post login flow execution in my case: import { IgApiClient } from 'instagram-private-api'
import dotenv from "dotenv";
dotenv.config();
const ig = new IgApiClient();
ig.state.generateDevice(process.env.IG_USERNAME);
(async () => {
await ig.simulate.preLoginFlow();
const loggedInUser = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
// process.nextTick(async () => await ig.simulate.postLoginFlow());
const userFeed = ig.feed.user(loggedInUser.pk);
const myPostsFirstPage = await userFeed.items();;
console.log(myPostsFirstPage[0])
})(); |
Same here. Removing the ig.simulate.postLoginFlow() removed the error for me but I worry that may end up having other side effects / increasing likelihood of bot detection. |
Yes, that does cause other side effects. The API becomes pretty unusable after removing that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting this error after pos-login, I can get around this by commenting out the lines
the problem is that when doing this, when sending some messages through the API my account receives a 3 day restriction on sending messages
The text was updated successfully, but these errors were encountered: