production-ERROR--The-resource-owner-or-authorization-server

created at 07-11-2021 views: 2

description

The Laravel log file reports a lot of errors: 

production.ERROR: The resource owner or authorization server denied the request. {"exception":"[object] (League\\OAuth2\\Server\\Exception\\OAuthServerException(code: 9): The resource owner or authorization server denied the request. at /data/www/laravel/vendor/league/oauth2-server/src/Exception/OAuthServerException.php:223)

Solution

It can be solved by adding the following error report ignore items in the App\Exceptions\Handler.php file:

    /**
     * A list of the exception types that are not reported.
     *
     * @var array
     */
    protected $dontReport = [
        "\League\OAuth2\Server\Exception\OAuthServerException",
    ];
Please log in to leave a comment.