Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

auth user class redis not fund #540

Open
huiyonghkw opened this issue Feb 16, 2023 · 0 comments
Open

auth user class redis not fund #540

huiyonghkw opened this issue Feb 16, 2023 · 0 comments

Comments

@huiyonghkw
Copy link

huiyonghkw commented Feb 16, 2023

Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks!
(Any non-English issues will be closed immediately.)

  1. Please provide your PHP and Swoole version. (php -v and php --ri swoole)
php 7.4

swoole 4.8.12
  1. Please provide your Laravel/Lumen version.

laravel.8.83.27

  1. Which release version of this package are you using?

v2.12.1

  1. What did you do? If possible, provide a recipe for reproducing the error.
[2023-02-16 21:35:19] local.ERROR: Class 'Redis' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Class 'Redis' not found at /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:75)
[stacktrace]
#0 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(28): Illuminate\\Redis\\Connectors\\PhpRedisConnector->createClient(Array)
#1 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(32): Illuminate\\Redis\\Connectors\\PhpRedisConnector->Illuminate\\Redis\\Connectors\\{closure}()
#2 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(112): Illuminate\\Redis\\Connectors\\PhpRedisConnector->connect(Array, Array)
#3 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(91): Illuminate\\Redis\\RedisManager->resolve('cache')
#4 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(258): Illuminate\\Redis\\RedisManager->connection('cache')
#5 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(62): Illuminate\\Cache\\RedisStore->connection()
#6 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/TagSet.php(107): Illuminate\\Cache\\RedisStore->get('tag:tymon.jwt:k...')
#7 [internal function]: Illuminate\\Cache\\TagSet->tagId('tymon.jwt')
#8 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/TagSet.php(96): array_map(Array, Array)
#9 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/TagSet.php(86): Illuminate\\Cache\\TagSet->tagIds()
#10 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/TaggedCache.php(102): Illuminate\\Cache\\TagSet->getNamespace()
#11 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/TaggedCache.php(91): Illuminate\\Cache\\TaggedCache->taggedItemKey('KGMd3OnjKrqipzQ...')
#12 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(97): Illuminate\\Cache\\TaggedCache->itemKey('KGMd3OnjKrqipzQ...')
#13 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/Providers/Storage/Illuminate.php(101): Illuminate\\Cache\\Repository->get('KGMd3OnjKrqipzQ...')
#14 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/Blacklist.php(129): Tymon\\JWTAuth\\Providers\\Storage\\Illuminate->get('KGMd3OnjKrqipzQ...')
#15 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/Manager.php(108): Tymon\\JWTAuth\\Blacklist->has(Object(Tymon\\JWTAuth\\Payload))
#16 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/JWT.php(200): Tymon\\JWTAuth\\Manager->decode(Object(Tymon\\JWTAuth\\Token))
#17 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/JWTAuth.php(64): Tymon\\JWTAuth\\JWT->getPayload()
#18 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/Http/Middleware/BaseMiddleware.php(70): Tymon\\JWTAuth\\JWTAuth->authenticate()
#19 /var/www/cczhaoche/laravel-api-app/vendor/tymon/jwt-auth/src/Http/Middleware/Authenticate.php(30): Tymon\\JWTAuth\\Http\\Middleware\\BaseMiddleware->authenticate(Object(Illuminate\\Http\\Request))
#20 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Tymon\\JWTAuth\\Http\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /var/www/cczhaoche/laravel-api-app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /var/www/cczhaoche/laravel-api-app/vendor/swooletw/laravel-swoole/src/Websocket/Websocket.php(458): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#23 /var/www/cczhaoche/laravel-api-app/vendor/swooletw/laravel-swoole/src/Websocket/Websocket.php(269): SwooleTW\\Http\\Websocket\\Websocket->setRequestThroughMiddleware(Object(Illuminate\\Http\\Request))
#24 /var/www/cczhaoche/laravel-api-app/vendor/swooletw/laravel-swoole/src/Concerns/InteractsWithWebsocket.php(102): SwooleTW\\Http\\Websocket\\Websocket->call('connect', Object(Illuminate\\Http\\Request))
#25 {main}
"} 
  1. What did you expect to see?
auth()->user()
  1. What did you see instead?

#151

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant