barnumbirr/ares

Aways see timeout when search a CVE by this moudle

Closed this issue · 1 comments

When use this lib to search a CVE it always get timeout issue

sum = cve.id("CVE-2016-2179")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/ares/core.py", line 55, in id
    response = self.__request('cve/', query=param)
  File "/usr/local/lib/python2.7/site-packages/ares/core.py", line 29, in __request
    timeout = self.request_timeout)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 686, in send
    r.content
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 828, in content
    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 757, in generate
    raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cve.circl.lu', port=443): Read timed out.

and sometimes it crawl successfully

Is the lib issue or something wrong with the website https://cve.circl.lu ?

Hello,

cve.circl.lu seems to be down at the moment so the issue comes from the API. Nothing I can really do about it. Thanks for reporting though.

Cheers.