mifi / instauto

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

Failed to follow user (button did not change state) #14

Closed oteri1337 closed 4 years ago

oteri1337 commented 4 years ago

Failed to follow user (button did not change state)

Works on my local linux computer but I get this error on my remote linux server

LOCAL LINUX COMPUTER Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2019.4 Codename: kali-rolling

REMOTE LINUX SERVER (GOOGLE CLOUD) Distributor ID: Debian Description: Debian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch

mifi commented 4 years ago

Try to run with headless false and see if you get an error msg from instagram. Is your server on same ip as computer?

oteri1337 commented 4 years ago

headless false returns error failed to launch chrome

oteri1337 commented 4 years ago

Please which platform can I deploy to without this error: Failed to follow user (button did not change state)

mifi commented 4 years ago

Sounds like your server has no GUI. Maybe you can do ssh into it with X11 forwarding (ssh -Y host) and see if it works. It’s hard to know what’s wrong without seeing what the display shows. Or maybw you can add to the code to take a screenshot after it catches the error.

oteri1337 commented 4 years ago

chrome runs very slow when i try to do x11 forwarding on my server

oteri1337 commented 4 years ago

I added the screen shot code, the problem is the action gets blocked when it comes from my server. link to screen shot https://mega.nz/#!xo1nmChS!_hTd7xBOpn43PUcz3wuEkOXpA0LZ0XppERc68BVXYbM

Please is there a way to get around this

mifi commented 4 years ago

Like I said before and stated in readme, make sure your server has a normal home internet provider IP address and not cloud. Nothing I can do to solve this. Maybe try to use a VPN or a tunnel thru to a box running in your home. Maybe instabot.py has some discussion around these problems: https://github.com/instabot-py/instabot.py