I have facing an issue about using the PSIRT OpenVuln API as a library call function in my script with "query_client.get_by_aci" function and it works for some time.
However, it return the result with shown as follow
raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 406 Client Error: Not Acceptable for url: https://api.cisco.com/security/advisories/aci?version=14.2%283l%29
I have checked with code and find that there no difference for this function
"advisories_aci=query_client.get_by_aci('aci','14.2(3l)')" in python. Any idea of it?
ACI version we are discussing here comes under error category as “No data found”. There is no associated advisory found for that ACI - 14.2(7r), So getting below error message, which is correct.
"errorMessage": "Advisory-id not found"
But yes, Error code 404 is appropriate over what we are sending as 406. We will get this fixed.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: