carto: handle more "API unavailable" errors
This commit is contained in:
parent
803364490d
commit
00d3cbc182
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class ApiCarto::API
|
|||
params = geojson.to_s
|
||||
RestClient.post(url, params, content_type: 'application/json')
|
||||
|
||||
rescue RestClient::InternalServerError => e
|
||||
rescue RestClient::InternalServerError, RestClient::BadGateway, RestClient::GatewayTimeout => e
|
||||
Rails.logger.error "[ApiCarto] Error on #{url}: #{e}"
|
||||
raise RestClient::ResourceNotFound
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue