If phpredis is used in the project to connect to redis, the following error is occasionally reported: {code ...} check that the project configuration information is correct. the error message is that someone has encountered a similar problem in issues of github when using redis to process sessions in the project occasionally, but there is no reason for this... such as the question, used in the project
phpredis
Link
redis
Occasionally, the following error is reported:
PHP Fatal error: Uncaught exception 'RedisException' with message 'Failed to AUTH connection' in [no active file]:0Stack trace:#0 {main} thrown in [no active file] on line 0"
check
The project configuration information is correct. this error message appears occasionally.
Use in projectredis
Processingsession
Ingithub
Ofissues
Some people have encountered similar problems, but they have not given the reasons and how to solve them.
If you have encountered similar problems in the project, you should directly use them.predis
What about this extension?
Reply content:
Such as the question, used in the projectphpredis
Linkredis
Occasionally, the following error is reported:
PHP Fatal error: Uncaught exception 'RedisException' with message 'Failed to AUTH connection' in [no active file]:0Stack trace:#0 {main} thrown in [no active file] on line 0"
check
The project configuration information is correct. this error message appears occasionally.
Use in projectredis
Processingsession
Ingithub
Ofissues
Some people have encountered similar problems, but they have not given the reasons and how to solve them.
If you have encountered similar problems in the project, you should directly use them.predis
What about this extension?
The extension phpredis is getting worse and worse ....
Check whether the Redis password is correct. if the cluster is deployed, check whether the environment is inconsistent.
$ Client = new Predis \ Client (array ('scheme '=> 'tcp', 'host' => '2017. 0.0.1 ', 'port' => 6379, 'database' => 15, 'password' => 'password '));
Does the prompted authentication fail?