blackducksoftware / hub-rest-api-python

HUB REST API Python bindings
Apache License 2.0
89 stars 105 forks source link

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

Open gtisan opened 2 months ago

gtisan commented 2 months ago

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 commented 1 month ago

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

OffBy0x01 commented 1 month ago

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

djeverett commented 1 month ago

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