Skip to content

Commit

Permalink
Added handling of error code QUOTA_SYSTEM_UNAVAILABLE (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangchiandjjoe authored Mar 6, 2017
1 parent ee657a9 commit f0d91dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contrib/endpoints/src/api_manager/service_control/proto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,11 @@ Status Proto::ConvertAllocateQuotaResponse(
// The backend server for checking service status is unavailable.
case ::google::api::servicecontrol::v1::QuotaError::
BILLING_STATUS_UNAVAILABLE:
// The backend server for checking billing status is unavailable.
// Fail open for internal server errors per recommendation
// The backend server for checking billing status is unavailable.
// Fail open for internal server errors per recommendation
case ::google::api::servicecontrol::v1::QuotaError::
QUOTA_SYSTEM_UNAVAILABLE:
// The backend server for checking quota limits is unavailable.
return Status::OK;

default:
Expand Down

0 comments on commit f0d91dc

Please sign in to comment.