ankitpokhrel / tus-php

🚀 A pure PHP server and client for the tus resumable upload protocol v1.0.0

Home Page:https://tus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Predis\Connection\ConnectionException

jessice-ai opened this issue · comments

1、确定redis可以使用。
2、代码
$server = new \TusPhp\Tus\Server('redis');

$response = $server->serve(); #程序到这里,报错了 Predis\Connection\ConnectionException

$response->send();

exit(0); // 退出当前 PHP 进程

commented

ConnectionException usually implies that the server cannot connect to the redis instance. Make sure that the connection details are set correctly. You can use REDIS_HOST, REDIS_PORT and REDIS_DB env in your server to override redis settings for both server and client.

Note: Please use the issue template with as much details as possible when creating a issue.