tactlabs / error-archive

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

2 #256

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
2019-08-19 15:16:05 scheduler _run_job ERROR Job "job_function (trigger: interval[0:10:00], next run at: 2019-08-19 15:18:41.405173)" raised an exception 
Traceback (most recent call last):
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/apscheduler/scheduler.py", line 512, in _run_job
    retval = job.func(*job.args, **job.kwargs)
  File "app.py", line 109, in job_function
    c_sched.run_site_collector_scheduler()
  File "/home/ubuntu/kwikee/projects/category_search/scheduler/collector_scheduler.py", line 60, in run_site_collector_scheduler
    exec_time_seconds, exec_time_minutes = bs.add_brands_from_search_links(category_id, limit, offset)
  File "/home/ubuntu/kwikee/projects/category_search/services/brand_service.py", line 49, in add_brands_from_search_links
    brand_links = k_util.get_brand_details_with_links(category_type_plain, brand_type, search_links)
  File "/home/ubuntu/kwikee/projects/category_search/utils/kwikee_util.py", line 127, in get_brand_details_with_links
    current_brand_links = nlu.get_category_websites(content, brand_type_plain)
  File "/home/ubuntu/kwikee/projects/category_search/nltk_util.py", line 163, in get_category_websites
    confidence_score = wu.get_content_confidence(domain, category)
  File "/home/ubuntu/kwikee/projects/category_search/utils/web_util.py", line 57, in get_content_confidence
    urlfile = urllib.request.urlopen(getRequest)
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.6/urllib/request.py", line 1321, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
TimeoutError: [Errno 110] Connection timed out