From ed734c19f005f089f0e975bbde096ac043d20626 Mon Sep 17 00:00:00 2001 From: Tsvetozar Penov Date: Thu, 21 Nov 2024 13:05:18 +0100 Subject: [PATCH] Handle 503 cryptocompare --- lib/sanbase/cryptocompare/handler.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sanbase/cryptocompare/handler.ex b/lib/sanbase/cryptocompare/handler.ex index 9ee7abee5..a5da33440 100644 --- a/lib/sanbase/cryptocompare/handler.ex +++ b/lib/sanbase/cryptocompare/handler.ex @@ -43,6 +43,10 @@ defmodule Sanbase.Cryptocompare.Handler do # The error is No HOUR entries available on or before {:error, :first_timestamp_reached} + {:ok, %{status_code: 503}} -> + # Service temporarily unavailable + {:error, :service_unavailable} + {:error, error} -> {:error, error} end