使用redis插件时报错

fisha

问题描述

截图

'''
请求图形验证码接口时报错,接口使用了redis缓存

报错信息


{
    "code": 200,
    "msg": "Internal Server Error",
    "data": {
        "domain": "xxx",
        "method": "GET",
        "request_url": "GET \/captcha\/image?hard=false",
        "timestamp": "2024-06-23 19:52:19",
        "client_ip": "xxx",
        "request_param": {
            "hard": "false"
        },
        "error_message": "Internal Server Error",
        "error_trace": [
            "#0 \/www\/wwwroot\/xxx\/vendor\/illuminate\/redis\/Connectors\/PhpRedisConnector.php(34): Illuminate\\Redis\\Connectors\\PhpRedisConnector->createClient()",
            "#1 \/www\/wwwroot\/xxx\/vendor\/illuminate\/redis\/Connectors\/PhpRedisConnector.php(38): Illuminate\\Redis\\Connectors\\PhpRedisConnector->Illuminate\\Redis\\Connectors\\{closure}()",
            "#2 \/www\/wwwroot\/xxx\/vendor\/illuminate\/redis\/RedisManager.php(112): Illuminate\\Redis\\Connectors\\PhpRedisConnector->connect()",
            "#3 \/www\/wwwroot\/xxx\/vendor\/illuminate\/redis\/RedisManager.php(91): Illuminate\\Redis\\RedisManager->resolve()",
            "#4 \/www\/wwwroot\/xxx\/vendor\/workerman\/webman-framework\/src\/support\/Redis.php(262): Illuminate\\Redis\\RedisManager->connection()",
            "#5 \/www\/wwwroot\/xxx\/vendor\/workerman\/webman-framework\/src\/support\/Cache.php(35): support\\Redis::connection()",
            "#6 \/www\/wwwroot\/xxx\/vendor\/workerman\/webman-framework\/src\/support\/Cache.php(48): support\\Cache::instance()",
            "#7 \/www\/wwwroot\/xxx\/app\/functions.php(22): support\\Cache::__callStatic()",
            "#8 \/www\/wwwroot\/xxx\/app\/middleware\/AuthCheck.php(141): createSign()",
            "#9 \/www\/wwwroot\/xxx\/app\/middleware\/AuthCheck.php(67): app\\middleware\\AuthCheck->createSign()",
            "#10 \/www\/wwwroot\/xxx\/vendor\/workerman\/webman-framework\/src\/App.php(341): app\\middleware\\AuthCheck->process()",
            "#11 \/www\/wwwroot\/xxx\/vendor\/workerman\/webman-framework\/src\/App.php(141): Webman\\App::Webman\\{closure}()",
            "#12 \/www\/wwwroot\/xxx\/vendor\/workerman\/workerman\/Connection\/TcpConnection.php(646): Webman\\App->onMessage()",
            "#13 \/www\/wwwroot\/xxx\/vendor\/workerman\/workerman\/Events\/Select.php(311): Workerman\\Connection\\TcpConnection->baseRead()",
            "#14 \/www\/wwwroot\/xxx\/vendor\/workerman\/workerman\/Worker.php(1638): Workerman\\Events\\Select->loop()",
            "#15 \/www\/wwwroot\/xxx\/vendor\/workerman\/workerman\/Worker.php(1429): Workerman\\Worker::forkOneWorkerForLinux()",
            "#16 \/www\/wwwroot\/xxx\/vendor\/workerman\/workerman\/Worker.php(1403): Workerman\\Worker::forkWorkersForLinux()",
            "#17 \/www\/wwwroot\/xxx\/vendor\/workerman\/workerman\/Worker.php(560): Workerman\\Worker::forkWorkers()",
            "#18 \/www\/wwwroot\/xxx\/vendor\/workerman\/webman-framework\/src\/support\/App.php(131): Workerman\\Worker::runAll()",
            "#19 \/www\/wwwroot\/xxx\/start.php(4): support\\App::run()",
            "#20 {main}"
        ],
        "file": "\/www\/wwwroot\/xxx\/vendor\/illuminate\/redis\/Connectors\/PhpRedisConnector.php",
        "line": 81
    }
}

操作系统及workerman/webman等框架组件具体版本

使用的是php8.0.37和redis7.2.5,已安装phpredis扩展
webman版本4.1.15
截图

截图
截图

435 1 0
1个回答

damao

redis 连不上,redis没启动或者设置的redis或ip端口不对

  • 暂无评论
×
🔝