Traceback (most recent call last):
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/rj/projects/category_search/rest_api/advanced_controller.py", line 40, in get_brands_2
brand['has_ads'] = ad_util.has_ads(web_link)
File "/Users/rj/projects/category_search/utils/ad_util.py", line 39, in has_ads
links = get_iframe_links(url)
File "/Users/rj/projects/category_search/utils/ad_util.py", line 61, in get_iframe_links
link = child_frame.get_attribute('src')
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 141, in get_attribute
self, name)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script
'args': converted_args})['value']
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: The element reference of <iframe name="talkable-popup" src="https://www.talkable.com/public/barista-life/affiliate_members/create.html?v=2.2.9&campaign_tags%5B%5D=popup"> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
2019-08-13 11:40:04 127.0.0.1 - - [13/Aug/2019 11:40:04] "GET /advanced/brands/get/all?type=coffee HTTP/1.1" 500 -