Skip to content

Downloading of reports broken #10287

@vjancich

Description

@vjancich

Issue search

  • I have searched the existing issues and this bug has not been reported yet

Which component is affected?

Prowler API

Cloud Provider (if applicable)

AWS

Steps to Reproduce

Hello,

we are running Prowler as an AWS ECS Fargate services (separate ECS service for UI and API with worker). Scanning works fine including attack path creation. Once scan is completed and attack path is created, results are stored in S3 bucket.
However, when we want to see report or download zip, it doesn't work. Message in UI is shows: "Download failed. The scan has no reports, or the report generation task has not started yet."
In the logs for API container is following error:

2026-03-09 08:09:24.128warn{
  "timestamp": "2026-03-09 07:09:23",
  "level": "WARNING",
  "message": "Not Found: /api/v1/scans/019cc835-8800-74d8-bd75-65dd68430577/report",
  "logger": "django.request",
  "module": "log",
  "pathname": "/home/prowler/.cache/pypoetry/virtualenvs/prowler-api-NnJNioq7-py3.12/lib/python3.12/site-packages/django/utils/log.py",
  "lineno": 253,
  "funcName": "log_response",
  "process": 117,
  "thread": 140233479752576,
  "transaction_id": "0b409cc6b56e48a0a67e267426c2c9b6",
  "status_code": 404
}

Prowler shows this error for new scans and also for older scans (few days old). I can see the scan is in PostgreSQL DB.

Expected behavior

It's possible to download scan report

Actual Result with Screenshots or Logs

Error in UI
Image

Warning log in API

2026-03-09 10:30:41.476warn{
  "timestamp": "2026-03-09 09:30:40",
  "level": "WARNING",
  "message": "Not Found: /api/v1/scans/019cd1c1-5ac3-72c6-b616-bfd561e5178d/report",
  "logger": "django.request",
  "module": "log",
  "pathname": "/home/prowler/.cache/pypoetry/virtualenvs/prowler-api-NnJNioq7-py3.12/lib/python3.12/site-packages/django/utils/log.py",
  "lineno": 253,
  "funcName": "log_response",
  "process": 121,
  "thread": 140324112481152,
  "transaction_id": "31b69cc35d20487f97a7f9a1a914ef36",
  "status_code": 404
}

How did you install Prowler?

Cloning the repository from github.com (git clone)

Environment Resource

Running as ECS Fargate services

OS used

not applicable (AWS provided)

Prowler version

v5.19.0

Python version

provided by Prowler

Pip version

provided by Prowler

Context

No response

Metadata

Metadata

Assignees

Labels

bugseverity/mediumResults in some unexpected or undesired behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions