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

KeyError when run examples/client/get_project_vulnerabilites_as_csv.py #277

Open
gtisan opened this issue Sep 24, 2024 · 3 comments
Open

Comments

@gtisan
Copy link

gtisan commented Sep 24, 2024

I'm running this
python examples/client/get_project_vulnerabilites_as_csv.py
and I get this error
Traceback (most recent call last):
File "hub-rest-api-python/examples/client/get_project_vulnerabilites_as_csv.py", line 92, in
main()
File "hub-rest-api-python/examples/client/get_project_vulnerabilites_as_csv.py", line 79, in main
remediation = vulnverable_component['vulnerabilityWithRemediation']
KeyError: 'vulnerabilityWithRemediation'

It seems that the key was renamed or removed. How is the name of the new key ?

@djeverett
Copy link

I've seen this too since we upgraded to Black Duck 2024.7.

@OffBy0x01
Copy link
Collaborator

If you drop a list resources in there you can see if there is an equivalent.

@djeverett
Copy link

Yes, the "href" resource does seem to have the equivalent info in it.

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

3 participants