Skip to content

core: kraken: A manifest source that fails to load is returned as empty with no error #4886

Todo

Description

@joaoantoniocardoso

Bug description

ManifestManager.fetch logs a warning when one source cannot load. It then returns that source again with no data. The client cannot tell an empty source from a failed one. The UI shows the source with no extensions and no reason.

Root cause: manifest.py#L130-L141 uses gather(return_exceptions=True). The failure goes to the log only. Manifest (models.py#L136-L140) has no error field.

Keeping the other sources visible is intended (PR #4293). The error is not reported to the caller. #4863 covers the all-sources-down case and the wrong 404 on install. It does not cover one failed source.

Fix: add an optional error string to Manifest, fill it in the except branch, and show it in the source list.

Steps to reproduce

  1. Add two manifest sources. Make the URL of one fail (offline or HTTP 500). (from code reading, not run)
  2. Call GET /v2.0/manifest/.
  3. The failed source comes back with data: null and no error. The log has one warning.

Primary pain point(s)

A user sees an empty source and does not know if it is empty, blocked or down. Workaround: read the Kraken log.

Additional context

Environment: code reading only. Code: bluerobotics/BlueOS 1.4-dev at fa7614a (measured).
Found by the swallowed-errors audit (row 37). Duplicate check (state all): "manifest source unreachable empty". Related: #4863, #1695, PR #4293.

Evidence

Audit: DEV/efforts/kraken-4313/swallowed-errors-audit.md, row 37. The branch kraken-4313/1695-offline-catalog-error raises only when every source fails, so one failed source is still silent.

Activity

  1. added
    bug
    on Nov 27, 2026
  2. added
    core
    triage
    on Nov 27, 2026
  3. github-actions commented on Nov 27, 2026

    @github-actions

    Yo, this issue might be related to:

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

Metadata

Metadata

Labels

bugcorekrakentriage

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions