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

Parse error when using Anchore as source for the security warnings metric #2177

Closed
fniessink opened this issue May 16, 2021 · 0 comments · Fixed by #2178
Closed

Parse error when using Anchore as source for the security warnings metric #2177

fniessink opened this issue May 16, 2021 · 0 comments · Fixed by #2178
Assignees
Labels
Bug Something isn't working

Comments

@fniessink
Copy link
Member

This is with the example report:

Parse error
Traceback (most recent call last):
  File "/home/collector/base_collectors/source_collector.py", line 164, in __safely_parse_source_responses
    measurement = await self._parse_source_responses(responses)
  File "/home/collector/base_collectors/source_collector.py", line 176, in _parse_source_responses
    entities=await self._parse_entities(responses),
  File "/home/collector/source_collectors/anchore/security_warnings.py", line 19, in _parse_entities
    [
  File "/home/collector/source_collectors/anchore/security_warnings.py", line 20, in <listcomp>
    self._create_entity(vulnerability, response.filename)
AttributeError: 'ClientResponse' object has no attribute 'filename'
@fniessink fniessink added the Bug Something isn't working label May 16, 2021
fniessink added a commit that referenced this issue May 16, 2021
…e error if the source was an unzipped Anchore JSON file. Fixes #2177.
fniessink added a commit that referenced this issue May 16, 2021
…e error if the source was an unzipped Anchore JSON file. Fixes #2177. (#2178)
@fniessink fniessink self-assigned this May 16, 2021
@fniessink fniessink moved this to Released in Quality-time backlog May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant