cloudendpoints / endpoints-management-python

A Python library for managing API services using Google's Service Control APIs
Apache License 2.0
19 stars 22 forks source link

More gracefully handle errors loading service config #63

Closed inklesspen closed 6 years ago

inklesspen commented 6 years ago

If we can't load service config, we'll loudly log it and then replace the application with one which responds to all requests with HTTP 503 Service Unavailable.

Equivalent of https://github.com/cloudendpoints/endpoints-management-java/pull/39

This adds a dependency on webob rather than reinventing the "http exception" scheme. Google's webapp2 framework has a dependency on webob for the same reason. (An alternative implementation of this scheme is available from the werkzeug library.)