Skip to content

Commit

Permalink
Merge pull request #4481 from santiment/handle-503-cryptocompare
Browse files Browse the repository at this point in the history
Handle 503 cryptocompare
  • Loading branch information
tspenov authored Nov 21, 2024
2 parents c4af5a7 + ed734c1 commit 1de35c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sanbase/cryptocompare/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ defmodule Sanbase.Cryptocompare.Handler do
# The error is No HOUR entries available on or before <timestamp>
{:error, :first_timestamp_reached}

{:ok, %{status_code: 503}} ->
# Service temporarily unavailable
{:error, :service_unavailable}

{:error, error} ->
{:error, error}
end
Expand Down

0 comments on commit 1de35c1

Please sign in to comment.