cardano-foundation / cardano-graphql

GraphQL API for Cardano
Apache License 2.0
259 stars 103 forks source link

Fix/cannot read networksynchronization #874

Closed Kammerlo closed 3 months ago

Kammerlo commented 3 months ago

Context

An error occured when submitting a transaction, which lead to the ogmios ServerStatusHealth check. At application startup the health check throws an error, when the server component is faster in starting as ogmios node. After this error the application couldn't recover, so the serverStatusHealth object was empty leading to an undefined networksynchronization field.

Proposed Solution

This PR contains the solution. The error will be catched and this will avoid the crash of Ogmios Serverstatus checker.