gpt4 book ai didi

PHP/拉拉维尔 : cURL error 56: SSL read: error:00000000:lib

转载 作者:太空宇宙 更新时间:2023-11-03 14:44:33 25 4
gpt4 key购买 nike

我在我的 laravel 应用程序中的一个函数上遇到了这个错误。昨天一切正常。

cURL error 56: SSL read: error:00000000:lib(0):func(0):reason(0), errno 104 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

in CurlFactory.php line 187 at CurlFactory::createRejection(object(EasyHandle), array('errno' => '56', 'error' => 'SSL read: error:00000000:lib(0):func(0):reason(0), errno 104', 'url' => 'https://server7.phasehosting.io:2087/json-api/dumpzone?&domain=phasedev.be', 'content_type' => null, 'http_code' => '0', 'header_size' => '0', 'request_size' => '1174', 'filetime' => '-1', 'ssl_verify_result' => '0', 'redirect_count' => '0', 'total_time' => '2.30737', 'namelookup_time' => '0.004516', 'connect_time' => '0.02006', 'pretransfer_time' => '0.06986', 'size_upload' => '0', 'size_download' => '0', 'speed_download' => '0', 'speed_upload' => '0', 'download_content_length' => '-1', 'upload_content_length' => '-1', 'starttransfer_time' => '0', 'redirect_time' => '0', 'redirect_url' => '', 'primary_ip' => '37.97.192.223', 'certinfo' => array(), 'primary_port' => '2087', 'local_ip' => '10.0.2.15', 'local_port' => '48858')) in CurlFactory.php line 150

当我为 API 调用指定错误的参数时,我收到一个服务器错误响应,我需要定义正确的参数,当我指定正确的参数时,我收到 Curl 错误。

当使用 postman 发出请求时,我得到了成功的响应

其他 API 调用会按预期工作。所以我现在有点困惑。我应该看哪里?

这是运行查询的函数:

    protected function runQuery($action, $arguments)
{
$host = $this->getHost();
$client = new Client(['base_uri' => $host]);
try{
$response = $client->post('/json-api/' . $action, [
'headers' => $this->createHeader(),
// 'body' => $arguments[0],
'verify' => false,
'query' => $arguments,
'timeout' => $this->getTimeout(),
'connect_timeout' => $this->getConnectionTimeout()
]);

return (string) $response->getBody();
}
catch(\GuzzleHttp\Exception\ClientException $e)
{
return $e->getMessage();
}
}

最佳答案

您使用的是哪个版本的 Guzzle?确保它不是过时的。 Guzzle bumped 版本最近出现了 BC 问题。

关于PHP/拉拉维尔 : cURL error 56: SSL read: error:00000000:lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40153524/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com