-
Notifications
You must be signed in to change notification settings - Fork 536
test: test_update sha256 error #4971
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
Comments
I've been investigating the KeyError: 'sha256' failure in test_update. Here’s what I’ve found so far: The error suggests that the 'sha256' key is missing in the expected response. I checked the response structure, and it appears that 'sha256' is not always present. Adding a safeguard (if 'sha256' in response:) prevents the error, but I need to confirm whether the absence of 'sha256' is expected or a deeper issue. Running the test in isolation (pytest test/test_cli.py::TestCLI::test_update -v) produces the same failure, ruling out environment-related issues. I'm also reviewing recent dependency updates and API changes that might have affected this. Would you recommend handling this missing key as an expected case, or should I investigate why it’s absent in the first place? |
Are there any updates on this issue? |
Yeah, we're seeing it in our cache too at the moment. You may have better luck using an nvd_api_key and getting data direct from them; last time I think it was a mirror race condition that caused the signature mismatch. |
I haven't debugged it yet, but we're currently seeing failures with the error above.
The text was updated successfully, but these errors were encountered: