You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a simple application to add all my followers on the close friends, it worked on the beggining and already added 1300 followers as besties, but suddenly starts failing and I want to know how can I fix and improve this.
Ps: I implemented the 'batchCooldown' after crash on the first time.
constig=newIgApiClient();console.log("Generating device...");ig.state.generateDevice(process.env.IG_USERNAMEasstring);console.log("Logging in...");(async()=>{awaitig.account.login(process.env.IG_USERNAMEasstring,process.env.IG_PASSWORDasstring);console.log("Logged in, fetching followers...");constfollowersFeed=ig.feed.accountFollowers(ig.state.cookieUserId);constfollowers=(awaitthis.getAllItemsFromFeed(followersFeed));console.log(`Fetched ${followers.length} followers, adding as besties...`);console.log(" ")constbatchSize=5;leti=0;letmax=followers.length;letbatchCooldown=0;while(i<max){if(batchCooldown>=1000){batchCooldown=0;console.log("Batch cooldown reached, waiting 10 minutes...");awaitnewPromise(resolve=>setTimeout(resolve,600000));}constbatch=followers.slice(i,i+batchSize);constpks=batch.map(follower=>follower.pk);awaitig.friendship.setBesties({add: pks});consttime=Math.round(Math.random()*5000)+1000;awaitnewPromise(resolve=>setTimeout(resolve,time));i+=batchSize;batchCooldown+=1;console.log(`Added batch of ${batchSize} followers as besties. Progress: ${Math.min(i,max)}/${max} - (${Math.round(Math.min(i,max)/max*100)}%)`);}console.log("Process ended, all followers were added as besties. 🎉");})();
I don't know whats 'feedback_required' means.
IgResponseError: GET /api/v1/friendships/61038176888/followers/?order=default&query=&enable_groups=true - 400 Bad Request; feedback_required
at Request.handleResponseError (/home/container/node_modules/instagram-private-api/dist/core/request.js:126:16)
at Request.send (/home/container/node_modules/instagram-private-api/dist/core/request.js:54:28)
at async AccountFollowersFeed.request (/home/container/node_modules/instagram-private-api/dist/feeds/account-followers.feed.js:28:26)
at async AccountFollowersFeed.items (/home/container/node_modules/instagram-private-api/dist/feeds/account-followers.feed.js:42:22) { tags: [ 'Error', 'UnhandledRejection' ] }
The text was updated successfully, but these errors were encountered:
Question
I made a simple application to add all my followers on the close friends, it worked on the beggining and already added 1300 followers as besties, but suddenly starts failing and I want to know how can I fix and improve this.
Ps: I implemented the 'batchCooldown' after crash on the first time.
I don't know whats 'feedback_required' means.
The text was updated successfully, but these errors were encountered: