Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE module crashes with read timeout #1326

Closed
achantavy opened this issue Jul 8, 2024 · 0 comments
Closed

CVE module crashes with read timeout #1326

achantavy opened this issue Jul 8, 2024 · 0 comments

Comments

@achantavy
Copy link
Contributor

Description:

What issue is being seen? Describe what should be happening instead of the bug, for example: Cartography should not crash, the expected value isn't returned, the data schema is wrong, etc.

The CVE module crashes with a readtimeout.

To Reproduce:

Steps to reproduce the behavior. Provide all data and inputs required to reproduce the issue.

Run the CVE module at a time when the service or network conditions are unstable

Logs:

If applicable, copy and paste your console log with the failing stack trace.

  File ".../cartography/intel/cve/feed.py", line 166, in get_modified_cves
    cves = get_cves_in_batches(
  File ".../cartography/intel/cve/feed.py", line 144, in get_cves_in_batches
    batch_cves = _call_cves_api(nist_cve_url, api_key, params)
  File ".../cartography/intel/cve/feed.py", line 89, in _call_cves_api
    res = requests.get(
  File ".../requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File ".../requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File ".../lyft_requests/requests_utils.py", line 273, in session_request_wrapper
    res = requests._before_session_request_wrapper(  # type: ignore
  File ".../requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File ".../requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File ".../requests/adapters.py", line 713, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='services.nvd.nist.gov', port=443): Read timed out. (read timeout=10)

Please complete the following information::

  • Cartography release version or commit hash [e.g. 0.12.0 or 95e8e11]

0.92.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant