oauth2 raise_from_error
raises random error for invalid_request
#776
Labels
raise_from_error
raises random error for invalid_request
#776
When an OAuth2 call fails,
raise_from_error
loops through all defined exceptions inerrors.py
to find one that matches the returned error code. However, theinvalid_request
error code is defined on a base classInvalidRequestFatalError
that is implemented by several specific errors. The result is that, when aninvalid_request
happens, a random class is raised to the calling client.For example, I hade the following happen:
(which is obviously not an
InvalidClientIdError
)The text was updated successfully, but these errors were encountered: