tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

2 #275

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
ERROR:flask.app:Exception on /api/has/ads [GET]
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/category_controller.py", line 604, in has_ads_api
    flag = ad_util.has_ads(site)
  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 49, in get_iframe_links
    driver = webdriver.Firefox(options = options, executable_path = gecko_driver_path)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 191, in __init__
    self.binary, timeout)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/firefox/extension_connection.py", line 52, in __init__
    self.binary.launch_browser(self.profile, timeout=timeout)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 73, in launch_browser
    self._wait_until_connectable(timeout=timeout)
  File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 104, in _wait_until_connectable
    "The browser appears to have exited "
selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.