mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
799 stars 145 forks source link

Like button section not found (Action Blocked on liking images) #30

Open selique opened 3 years ago

selique commented 3 years ago

Failed to follow user's images solwinkler_ Error: Evaluation failed: Error: Like button section not found at likeCurrentUserImagesPageCode (puppeteer_evaluation_script:38:27) at ExecutionContext._evaluateInternal (/opt/bitnami/projects/instauto/node_modules/puppeteer/lib/cjs/puppeteer/common/Execut ionContext.js:217:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async ExecutionContext.evaluate (/opt/bitnami/projects/instauto/node_modules/puppeteer/lib/cjs/puppeteer/common/Execution Context.js:106:16) at async likeCurrentUserImages (/opt/bitnami/projects/instauto/node_modules/instauto/index.js:439:5) at async followUserFollowers (/opt/bitnami/projects/instauto/node_modules/instauto/index.js:509:15) at async Object.followUsersFollowers (/opt/bitnami/projects/instauto/node_modules/instauto/index.js:538:9) at async /opt/bitnami/projects/instauto/example.js:65:5

mifi commented 3 years ago

I'm not sure what's happening here, it seems to only happen sometimes, and I cannot reproduce it.

mifi commented 3 years ago

I added code that takes screenshot when this error occurs. enable it with the option screenshotOnError: true

mifi commented 3 years ago

1601150049450

After taking a screenshot upon the error, I got this. So it seems to be caused by some kind of throttling from instagram's side.

sinaukode commented 3 years ago

if something happens like that, what I do is delete cookies and restart the service, or is there something else?

selique commented 3 years ago

i try restart but i think the elements change or id from DOM