Skip to content

Cannot import istio #563

Description

@list4nestor

Full logs here:

# python manage.py import istio
Importing data from istio
Traceback (most recent call last):
  File "/opt/vulnerablecode/vulnerabilities/management/commands/import.py", line 110, in _import_data
    ImportRunner(importer, batch_size).run(cutoff_date=cutoff_date)
  File "/opt/vulnerablecode/vulnerabilities/import_runner.py", line 89, in run
    process_advisories(data_source)
  File "/usr/local/lib/python3.8/contextlib.py", line 75, in inner
    return func(*args, **kwds)
  File "/opt/vulnerablecode/vulnerabilities/import_runner.py", line 116, in process_advisories
    advisory_batches = chain(data_source.updated_advisories(), data_source.added_advisories())
  File "/opt/vulnerablecode/vulnerabilities/importers/istio.py", line 61, in updated_advisories
    processed_data = self.process_file(f)
  File "/opt/vulnerablecode/vulnerabilities/importers/istio.py", line 89, in process_file
    data = self.get_data_from_md(path)
  File "/opt/vulnerablecode/vulnerabilities/importers/istio.py", line 183, in get_data_from_md
    return saneyaml.load(front_matter)
  File "/usr/local/lib/python3.8/site-packages/saneyaml.py", line 62, in load
    return yaml.load(s, Loader=loader)
  File "/usr/local/lib/python3.8/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
  File "/usr/local/lib/python3.8/site-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
  File "yaml/_yaml.pyx", line 719, in yaml._yaml.CParser.get_single_node
yaml.composer.ComposerError: expected a single document in the stream
  in "<unicode string>", line 1, column 1
but found another document
  in "<unicode string>", line 7, column 1
Failure to import data from istio. Continuing...
CommandError: 1 failed!: istio

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions