Skip to content

License scanning is failing #2737

@DekiChan

Description

@DekiChan

We noticed that license scanning in osv-scanner fails due to:

API query failed: deps.dev query failed: rpc error: code = Unavailable desc = service unavailable
Exit code: 129

We get this error when we run the scanner with --licenses argument:

osv-scanner scan -L go.mod --licenses --output-file scan.txt
Warning: plugin transitivedependency/pomxml can be risky when run on untrusted artifacts. Please ensure you trust the source code and artifacts before proceeding.
Starting filesystem walk for root: /
Scanned /<path>/<repo>/go.mod file and found 271 packages
End status: 0 dirs visited, 1 inodes visited, 1 Extract calls, 410.167µs elapsed, 410µs wall time
rpc error: code = Unavailable desc = service unavailable

However it runs fine without:

osv-scanner scan -L go.mod --output-file scan.txt 
Warning: plugin transitivedependency/pomxml can be risky when run on untrusted artifacts. Please ensure you trust the source code and artifacts before proceeding.
Starting filesystem walk for root: /
Scanned /<path>/<repo>/go.mod file and found 271 packages
End status: 0 dirs visited, 1 inodes visited, 1 Extract calls, 1.023375ms elapsed, 1.023ms wall time

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