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

Unable to submit SBOM to Dependecy Track #1650

Open
piyush94 opened this issue Feb 24, 2025 · 3 comments
Open

Unable to submit SBOM to Dependecy Track #1650

piyush94 opened this issue Feb 24, 2025 · 3 comments

Comments

@piyush94
Copy link

Unable to submit the SBOM to the Dependency-Track server using POST method HTTPError: Response code 400 (Bad Request)
    at Request.<anonymous> (file:///usr/local/lib/node_modules/@cyclonedx/cdxgen/node_modules/got/dist/source/as-promise/index.js:92:42)
    at Object.onceWrapper (node:events:633:26)
    at Request.emit (node:events:530:35)
    at Request.emit (node:domain:489:12)
    at Request._onResponseBase (file:///usr/local/lib/node_modules/@cyclonedx/cdxgen/node_modules/got/dist/source/core/index.js:609:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Request._onResponse (file:///usr/local/lib/node_modules/@cyclonedx/cdxgen/node_modules/got/dist/source/core/index.js:649:13)

Cdxgen version: 11.1.8
Node version: 20.18.1

@prabhu
Copy link
Collaborator

prabhu commented Feb 24, 2025

Could you investigate on the dependency track side to see if there are any validation errors or some such?

@piyush94
Copy link
Author

piyush94 commented Feb 25, 2025

@prabhu I am seeing this error but not sure if it's related to this.

ERROR [OsvDownloadTask] Exception while executing Http client request
java.lang.NullPointerException: Cannot invoke "us.springett.cvss.Cvss.calculateScore()" because "cvss" is null
	at org.dependencytrack.tasks.OsvDownloadTask.calculateOSVSeverity(OsvDownloadTask.java:271)
	at org.dependencytrack.tasks.OsvDownloadTask.mapAdvisoryToVulnerability(OsvDownloadTask.java:259)
	at org.dependencytrack.tasks.OsvDownloadTask.updateDatasource(OsvDownloadTask.java:164)
	at org.dependencytrack.tasks.OsvDownloadTask.unzipFolder(OsvDownloadTask.java:151)
	at org.dependencytrack.tasks.OsvDownloadTask.inform(OsvDownloadTask.java:121)
	at alpine.event.framework.BaseEventService.lambda$publish$0(BaseEventService.java:110)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

@prabhu
Copy link
Collaborator

prabhu commented Feb 25, 2025

May not be related to this error. Can you ask in any Dependency Track related channels for troubleshooting help?

Note to self: need to add dependency track knowledge to cdxgenGPT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants