-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to catch if oauth2 service is in maintenance mode #934
Comments
So far I identified the file
I think it's not such a good idea to just catch the error here and pass it on as some kind of regular feedback. In my opinion, an exception should be thrown cleanly as such, so that I can then also deal specifically with the error, as in this case. My proposed change would be as follows, although I am aware that tests may fail or that it may also represent a breaking change:
Maybe it's a solution, implement Like that:
It adds a new functionality without being a breaking change. |
I am currently trying to implement the client in such a way that I am notified when the OAuth2 service is in maintenance mode, i.e. when it returns an HTTP status code 503.
Unfortunately, maybe I'm blind, I don't see any way to get to this status code. I currently get the following message:
Unfortunately, I cannot use this to determine whether the service is in maintenance mode and I can display a corresponding clean message on my page. Is it possible to implement a way to get this information?
The text was updated successfully, but these errors were encountered: