This issue recently popped up in one of our projects, and I've spent the better part of a full day and a half trying to sort it out. When attempting to make an API/HTTP calls that utilize Passport/OAuth, the following errors are returned:
This SystemClock issue occurs on all HTTP/API calls. When trying to sign in or register a user, such as through the Google provider, the following error is logged:
[2021-03-30 15:45:18] production.DEBUG: ERROR: Target [Lcobucci\JWT\Parser] is not instantiable while building [Laravel\Passport\PersonalAccessTokenFactory]. on: 1017 in: /var/www/laravel-swoole/vendor/laravel/framework/src/Illuminate/Container/Container.php
To the best of my knowledge, I have tried all solutions so far. Originally, we were running Passport 8.x; I downgraded the JWT version to 3.3.3, explicitly installed the Clock dependency at 2.0, and then upgraded Passport & Laravel when that did not work. Installing the Clock dependency did silence the error briefly, but I read that the issue was corrected in Passport 10.1.x and verified that my versions matched.
Prior to a couple of days ago when we sorted some other errors related to Pusher, we were not having this issue, and our implementation of granting access tokens/creating users has not changed at all.
Steps To Reproduce:
Create a new Laravel 8.0 project
Follow the Passport installation/implementation guide, and attempt to make an API call
Make other API calls that involve the usage of Bearer tokens (such as in authorization).
Description:
This issue recently popped up in one of our projects, and I've spent the better part of a full day and a half trying to sort it out. When attempting to make an API/HTTP calls that utilize Passport/OAuth, the following errors are returned:
This SystemClock issue occurs on all HTTP/API calls. When trying to sign in or register a user, such as through the Google provider, the following error is logged:
To the best of my knowledge, I have tried all solutions so far. Originally, we were running Passport 8.x; I downgraded the JWT version to
3.3.3
, explicitly installed the Clock dependency at2.0
, and then upgraded Passport & Laravel when that did not work. Installing the Clock dependency did silence the error briefly, but I read that the issue was corrected in Passport 10.1.x and verified that my versions matched.Prior to a couple of days ago when we sorted some other errors related to Pusher, we were not having this issue, and our implementation of granting access tokens/creating users has not changed at all.
Steps To Reproduce: