Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guzzle curl error28 - 去哪设置默认timeout ? #715

Closed
Lujidev opened this issue May 26, 2017 · 3 comments
Closed

guzzle curl error28 - 去哪设置默认timeout ? #715

Lujidev opened this issue May 26, 2017 · 3 comments

Comments

@Lujidev
Copy link

Lujidev commented May 26, 2017

大家好,
我经常会有这个错误跳出来。
经过寻找,我读了论坛上的这个帖子:https://forum.easywechat.org/d/173--
说要改写guzzle默认的timeout。
是要去core里面http.php 那里设置吗?

错误:Fatal error: Uncaught exception 'GuzzleHttp\Exception\ConnectException' with message 'cURL error 28: Operation timed out after 0 milliseconds with 0 out of 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'

@mingyoung
Copy link
Collaborator

$config = [
    'app_id' => 'your-app-id',
    'secret' => 'your-secret',
    // ...
    'guzzle'=>[
        'timeout' => 30.0
    ],
];

$app = new Application($config);

@TheSaltwaterRoom
Copy link

我设置了超时时间还是会报错啊

@ouhaohan8023
Copy link

我也是额。。。这个报错怎么破?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants