mirror of
https://github.com/iv-org/instances-api.git
synced 2025-05-17 14:00:25 -04:00
errorStats parameter does not exist anymore removing
This commit is contained in:
parent
177c403a89
commit
51513d16a8
1 changed files with 0 additions and 1 deletions
|
@ -38,7 +38,6 @@ spawn do
|
||||||
response = JSON.parse(client.get("/api/checks?api-key=ro-52iHyp6LBqQq7rGp4N7p").body)
|
response = JSON.parse(client.get("/api/checks?api-key=ro-52iHyp6LBqQq7rGp4N7p").body)
|
||||||
monitors += response.as_a
|
monitors += response.as_a
|
||||||
rescue ex
|
rescue ex
|
||||||
error_message = response.try &.as?(String).try &.["errorStats"]?
|
|
||||||
error_message ||= ex.message
|
error_message ||= ex.message
|
||||||
puts "Error pulling monitors: #{error_message}"
|
puts "Error pulling monitors: #{error_message}"
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue