내 laravel 응용 프로그램에서이 오류가 발생합니다. 어제 모든 것이 잘되었습니다. 나는 내가 올바른 매개 변수를 정의 할 필요가 서버 오류 응답을 얻을 API 호출에 대한 잘못된 매개 변수를 지정하면 내가 올바른 매개 변수를 지정할 때 PHP/Laravel : cURL 오류 56 : SSL 읽기 : 오류 : 00000000 : lib
, 나는 컬 오류가 발생합니다. 나는 성공적인 응답을 의도 한대로 작동합니까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 호출을받을 요청을하는데 우체부를 사용하여. 그래서 나는 지금 당황 스럽다. 어디를 봐야합니까? 사용중인 목구멍 버전
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 6.2.2를 실행하고 있습니다.이 문제는 정말 당황 스럽습니다 ... 어제부터 변경된 사항이 하나 있는데, 이것이 Guzzle에 영향을 미치지 않습니다. Vagrant를 1.8.5에서 1.8.4로 다운 그레이드했습니다. 로컬 시스템에서 DC/OS를 실행해야했습니다. –