Membrane API Gateway uses this page for a 500 Internal Server Error of its OAuth2 authorization server (oauth2authserver) that occurs when the server fails to answer a request for an endpoint it does not serve. This does not happen in normal operation and usually indicates a bug in Membrane.
The client receives the status 500 Internal Server Error with the title Internal Server Error and the problem type https://membrane-api.io/problems/internal. The type internal means that the gateway could not complete the processing of the request. For this error, Membrane always behaves as in production mode: the response contains no details and no link to this page, regardless of the gateway's configuration. The cause can only be found in the gateway log.
The oauth2authserver plugin serves a fixed set of endpoints, such as the authorization, token and user info endpoints. Every request for another path under the server is answered with a standard OAuth2 error, a small JSON document {"error": "invalid_request"}. Only if creating that document fails is this 500 returned.
Serializing the invalid_request JSON response failed because of an unexpected internal state. No realistic trigger is known for this case, so treat it as a bug in Membrane.
error level.invalid_request error. Check that the client uses the correct endpoint paths.For a working setup of the authorization server and a client, see the authorization code flow tutorial.
Unlike most other errors, this one never includes details, the exception message or a link to this page in the response, not even in development mode. You do not need to configure anything to hide them. To analyze the error, use the gateway log.
Configuration reference:
Tutorials with runnable examples:
Still stuck? See the troubleshooting guide or ask on GitHub Issues. For commercial support, contact info@predic8.de.