wowica / xogmios

An Elixir client for Ogmios
9 stars 0 forks source link

Fix Ogmios connection errors #43

Closed caike closed 1 week ago

caike commented 2 weeks ago

The errors would take place when there were issues with the underlying Cardano node - typically when the node is still starting and not yet fully synced. The Ogmios service is able to start and receive connections but the handshake is never completed and the client errors out when trying to send frames.

With this fix, Xogmios now displays errors/warnings for the following:

[error] Ogmios reported error: Ogmios service error. Cardano Node not ready.
Trying reconnection in 5 seconds.
[warning] Cardano Node not ready. Network sync progress at 62.881% Trying reconnection in 5 seconds.
[warning] Cardano Node not ready. Network sync progress at 62.883% Trying reconnection in 5 seconds.

Fixes #42