Hanson / vbot

微信,企微,机器人,企业微信,企微机器人,微信机器人,小红书,美团,美团爬虫,聚合聊天,RPA,协议,hook,逆向,群发,自动回复,chatgpt,API对接,稳定防封全语言通用,企业定制/SCRM/SAAS专用
MIT License
4.06k stars 711 forks source link

请问,扫码之后出现以下错误怎么解决。。。 #232

Closed i1219 closed 6 years ago

i1219 commented 6 years ago

Redis已安装已运行

vbot.ERROR: Type error: Argument 2 passed to Illuminate\Redis\RedisManager::construct() must be of the type array, null given, called in /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 [] [] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Illuminate\Redis\RedisManager::construct() must be of the type array, null given, called in /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 in /www/web/test/vendor/illuminate/redis/RedisManager.php:40 Stack trace:

0 /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php(31): Illuminate\Redis\RedisManager->__construct('predis', NULL)

1 /www/web/test/vendor/illuminate/container/Container.php(749): Hanson\Vbot\Foundation\ServiceProviders\CacheServiceProvider->Hanson\Vbot\Foundation\ServiceProviders{closure}(Object(Hanson\Vbot\Foundation\Vbot), Array)

2 /www/web/test/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build(Object(Closure))

3 /www/web/test/vendor/illuminate/container/Container.php(586): Illuminate\Container\Container->resolve('redis', Array)

4 /www/web/test/vendor/illuminate/cont in /www/web/test/vendor/illuminate/redis/RedisManager.php on line 40

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Illuminate\Redis\RedisManager::__construct() must be of the type array, null given, called in /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 in /www/web/test/vendor/illuminate/redis/RedisManager.php:40 Stack trace:

0 /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php(31): Illuminate\Redis\RedisManager->__construct('predis', NULL)

1 /www/web/test/vendor/illuminate/container/Container.php(749): Hanson\Vbot\Foundation\ServiceProviders\CacheServiceProvider->Hanson\Vbot\Foundation\ServiceProviders{closure}(Object(Hanson\Vbot\Foundation\Vbot), Array)

2 /www/web/test/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build(Object(Closure))

3 /www/web/test/vendor/illuminate/container/Container.php(586): Illuminate\Container\Container->resolve('redis', Array)

4 /www/web/test/vendor/illuminate/cont in /www/web/test/vendor/illuminate/redis/RedisManager.php on line 40

[2017-12-07 04:58:36] vbot.ERROR: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Illuminate\Redis\RedisManager::construct() must be of the type array, null given, called in /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 in /www/web/test/vendor/illuminate/redis/RedisManager.php:40 Stack trace: #0 /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php(31): Illuminate\Redis\RedisManager->construct('predis', NULL) #1 /www/web/test/vendor/illuminate/container/Container.php(749): Hanson\Vbot\Foundation\ServiceProviders\CacheServiceProvider->Hanson\Vbot\Foundation\ServiceProviders{closure}(Object(Hanson\Vbot\Foundation\Vbot), Array) #2 /www/web/test/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build(Object(Closure)) #3 /www/web/test/vendor/illuminate/container/Container.php(586): Illuminate\Container\Container->resolve('redis', Array) #4 /www/web/test/vendor/illuminate/cont [] [] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Illuminate\Redis\RedisManager::__construct() must be of the type array, null given, called in /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 in /www/web/test/vendor/illuminate/redis/RedisManager.php:40 Stack trace:

0 /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php(31): Illuminate\Redis\RedisManager->__construct('predis', NULL)

1 /www/web/test/vendor/illuminate/container/Container.php(749): Hanson\Vbot\Foundation\ServiceProviders\CacheServiceProvider->Hanson\Vbot\Foundation\ServiceProviders{closure}(Object(Hanson\Vbot\Foundation\Vbot), Array)

2 /www/web/test/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build(Object(Closure))

3 /www/web/test/vendor/illuminate/container/Container.php(586): Illuminate\Container\Container- in /www/web/test/vendor/illuminate/redis/RedisManager.php on line 40

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Illuminate\Redis\RedisManager::__construct() must be of the type array, null given, called in /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 in /www/web/test/vendor/illuminate/redis/RedisManager.php:40 Stack trace:

0 /www/web/test/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php(31): Illuminate\Redis\RedisManager->__construct('predis', NULL)

1 /www/web/test/vendor/illuminate/container/Container.php(749): Hanson\Vbot\Foundation\ServiceProviders\CacheServiceProvider->Hanson\Vbot\Foundation\ServiceProviders{closure}(Object(Hanson\Vbot\Foundation\Vbot), Array)

2 /www/web/test/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build(Object(Closure))

3 /www/web/test/vendor/illuminate/container/Container.php(586): Illuminate\Container\Container- in /www/web/test/vendor/illuminate/redis/RedisManager.php on line 40

Hanson commented 6 years ago

redis 的配置有问题,或者改用 file做缓存

i1219 commented 6 years ago

前面那个问题搞定了,扫码后出现这个问题,是不是https的问题?已经安装了curl-7.57.0,是不是还有什么东西没装,麻烦指点下菜鸟,谢谢!! https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?pass_ticket=xpjadq8wxX5WLTnEkT6NiiUB%2B3BysG626J5ioZLaaGcOsc7XMi99jdke84kp%2FRrVcURL error 35: A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Hanson commented 6 years ago

关掉 swoole试试

vincent-anlan commented 6 years ago

谢谢啦

2017-12-28 1:06 GMT-05:00 HanSon notifications@github.com:

关掉 swoole试试

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HanSon/vbot/issues/232#issuecomment-354234673, or mute the thread https://github.com/notifications/unsubscribe-auth/AGM3glmdYYlwLyFHMdxJVV0UiORUoahWks5tEy_LgaJpZM4Q5AFy .