Repository: InstaPy/InstaPy

Issue #3760:  The update did not work. ( failed to load desired amount )
Created: 2019-01-16T23:00:17Z
Expected Behavior
I want f0llow someone's followers. I update my files after " failed to load desired amount " error. But I take new error.
Current Behavior
Possible Solution (optional)
InstaPy configuration
"""
This template is written by @ZackVega
What does this quickstart script aim to do?

This is my simple but effective script.
"""

from instapy import InstaPy
from instapy.util import smart_run
insta_username = 'xxxk'
insta_password = 'axx11'
get a session!
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=True,
multi_logs=True,
page_delay=7)
let's go! :>
with smart_run(session):
# general settings
session.set_relationship_bounds(enabled=True,
potency_ratio=None,
delimit_by_numbers=True,
max_followers=100000,
max_following=5000,
min_followers=150,
min_following=100)
session.set_skip_users(skip_private=False)
# activity
session.set_user_interact(amount=3, randomize=True, percentage=50, media='Photo')
session.follow_user_followers(['kadirozcaaan'], amount=2220, randomize=False, interact=True, sleep_delay=3800)

##Terminal
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-01-17 00:58:22] [kblycolak]  Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
...............................................................
INFO [2019-01-17 00:58:43] [kblycolak]  Logged in successfully!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2019-01-17 00:58:43] [kblycolak]  Saving account progress...

INFO [2019-01-17 00:58:47] [kblycolak]  Starting to follow user Followers..
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
INFO [2019-01-17 00:58:47] [kblycolak]  User 'kadirozcaaan' [1/1]
ERROR [2019-01-17 01:01:36] [kblycolak]  Error occurred while deleting cookies from web browser!
b'Message: invalid session id\n  (Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 6.1.7601 SP1 x86_64)\n'
Traceback (most recent call last):
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\util.py", line 1600, in smart_run
yield
File "qq.py", line 42, in 
session.follow_user_followers(['kadirozcaaan'], amount=2220, randomize=False, interact=True, sleep_delay=3800)
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\instapy.py", line 3048, in follow_user_followers
self.logfolder)
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\unfollow_util.py", line 998, in get_given_user_followers
logger, logfolder)
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\unfollow_util.py", line 741, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: headless chrome=71.0.3578.98)
(Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 6.1.7601 SP1 x86_64)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\browser.py", line 186, in close_browser
browser.delete_all_cookies()
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 878, in delete_all_cookies
self.execute(Command.DELETE_ALL_COOKIES)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: invalid session id
(Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO [2019-01-17 01:01:38] [kblycolak]  Sessional Live Report:
|> No any statistics to show
On session start was FOLLOWING 3120 users & had 2676 FOLLOWERS
[Session lasted 3.31 minutes]
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-01-17 01:01:38] [kblycolak]  Session ended!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
Traceback (most recent call last):
File "qq.py", line 42, in 
session.follow_user_followers(['kadirozcaaan'], amount=2220, randomize=False, interact=True, sleep_delay=3800)
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\instapy.py", line 3048, in follow_user_followers
self.logfolder)
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\unfollow_util.py", line 998, in get_given_user_followers
logger, logfolder)
File "C:\Users\WIN7\Desktop\InstaPy-master\instapy\unfollow_util.py", line 741, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\WIN7\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: headless chrome=71.0.3578.98)
(Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 6.1.7601 SP1 x86_64)

Duplicate issue #3762: [NEW] Script stops running, because of Chrome?
Created: 2019-01-17T10:55:14Z
So I run the script, and something happens. See below:
DevTools listening on ws://127.0.0.1:64704/devtools/browser/ef6dc1ff-bef2-4d6a-bc5c-e7e998fcf786
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-01-17 11:44:30] [baby_mansion]  Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
Cookie file not found, creating cookie...
..................................................................
INFO [2019-01-17 11:45:01] [baby_mansion]  Logged in successfully!
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2019-01-17 11:45:01] [baby_mansion]  Saving account progress...
INFO [2019-01-17 11:45:04] [baby_mansion]  User 'dearestdaughters' [1/2]
Then it does nothing, but in google chrome it says:
"Aw snap! Something went wrong while displaying this webpage."

Closing comment (2019-01-17T22:35:49Z): Duplicate: #3760

It's not duplicate, I don't get any errors.