jenkinsci / dependency-track-plugin

Main repository for the official Dependency-Track Jenkins plugin
https://dependencytrack.org/
Apache License 2.0
44 stars 27 forks source link

upstream request timeout when uploading large sbom #259

Closed Pabloo-ss closed 4 months ago

Pabloo-ss commented 4 months ago

Describe the bug

When uploading a sbom with ~2100 components I get this error back (attached screenshot)

Captura de pantalla 2024-07-16 a las 14 10 53

Environment

To Reproduce

Steps to reproduce the behavior:

  1. Upload large SBOM
  2. Go to Jenkins job
  3. See error

Expected behavior

Successfully uploaded SBOM or at least a polling time out

Additional context

This is the uploaded SBOM sbom_app.json

sephiroth-j commented 4 months ago

Well, that's not a problem of the plugin. The response status code is very clear about this: 504 Gateway Timeout. You are likely having some kind of reverse proxy in front of your DTrack API server. This is the place where you have to increase the timeout. You should also check the logs of DTrack because it seems to respond slowly.

p.s. The upload itself is successful. The timeout then occurs when updating the project properties.