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
Problem
The current
/healthendpoint 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
/healthendpoint to include status checks for key dependencies:Return a
503status with"degraded"if any dependency is unavailable.Impact