Skip to content

Improve /health endpoint to reflect dependency status #26

@TrishaG189

Description

@TrishaG189

Problem

The current /health endpoint always returns { status: "ok" }, regardless of whether critical dependencies like blockchain RPC, Filecoin service, or the claim server are actually available.

Since the camera app relies on this endpoint to decide whether to operate in online mode or fall back to offline queuing, this can lead to incorrect behavior and silent failures.


Proposed Solution

Extend the /health endpoint to include status checks for key dependencies:

  • Blockchain (web3 service)
  • Filecoin service
  • Claim server connectivity
  • Vlayer configuration (based on environment variables)

Return a 503 status with "degraded" if any dependency is unavailable.


Impact

  • More accurate system health reporting
  • Easier debugging of runtime issues
  • Better coordination with the camera app’s online/offline logic

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