w7corp / easywechat

📦 一个 PHP 微信 SDK
https://easywechat.com
MIT License
10.28k stars 2.4k forks source link

PHP Fatal error: Maximum execution time of 300 seconds exceeded in CurlMultiHandler #1356

Closed guoxiangke closed 5 years ago

guoxiangke commented 6 years ago

我用的环境

PHP 版本:php 7.2 overtrue/wechat 版本: "overtrue/laravel-wechat": "~4.0", 是否使用了框架?框架名称:laravel5.6

问题及现象

不知道怎么回事儿,使用docker部署, 响应简单文字消息正常,回复Music消息报错. 但是在腾讯云服务器上可以正常, 在本地开发+valet share也可以回复Music 但是,部署到aws东京区、新加坡区都不行,把30s改成300s也不行, 5s后,微信就提示公众号故障了. 有没有遇到过的?多谢. PHP Fatal error: Maximum execution time of 300 seconds exceeded in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php on line 108

image

overtrue commented 6 years ago

这个就帮不上忙了,确实就是网络超时导致的,SDK 怎么修改也帮不上忙。

guoxiangke commented 6 years ago

多谢,

guoxiangke commented 6 years ago

看来腾讯的服务器还有墙啊 我滴娘啊

guoxiangke commented 5 years ago

现在我的腾讯服务器也遇到此类情况,我感觉咱们sdk好像有需要改进的地方,多谢🙏 Maximum execution time of 30 seconds exceeded in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php on line 108 [Tue Oct 23 15:11:47.231414 2018] [php7:error] [pid 300] [client 172.17.0.3:45079] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php on line 108 [Tue Oct 23 15:11:47.875423 2018] [php7:error] [pid 301] [client 172.17.0.3:45085] PHP Fatal error: Maximum execution time of 30 s

guoxiangke commented 5 years ago

而且我之前用的https://github.com/dodgepudding/wechat-php-sdk的一个PHP项目,部署在aws可以正常使用. 新重构使用的laravel+easywechat. 现在在aws和腾讯云都遇到响应回复音频时,出现以上情况.

guoxiangke commented 5 years ago

好奇怪的现象,今天测试在腾讯云上又可以了,在google云上本来不可以,加上一句调试语句却可以了

guoxiangke commented 5 years ago

调试语句是109行的die(); vi /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php on line 108 image

guoxiangke commented 5 years ago

用return语句替代die都不行.

overtrue commented 5 years ago

这个不是 SDK 的问题,你需要自行解决