^ GuzzleHttp\Exception\ConnectException {#168
-request: GuzzleHttp\Psr7\Request {#165
-method: "POST"
-requestTarget: null
-uri: GuzzleHttp\Psr7\Uri {#157
-scheme: "http"
-userInfo: ""
-host: "192.168.15.25"
-port: 9200
-path: "/likuso_screen/_analyze"
-query: ""
-fragment: ""
-composedComponents: "http://192.168.15.25:9200/likuso_screen/_analyze"
}
-headers: array:5 [
"Content-Length" => array:1 [
0 => "71"
]
"User-Agent" => array:1 [
0 => "GuzzleHttp/7"
]
"Content-Type" => array:1 [
0 => "application/json"
]
"Authorization" => array:1 [
0 => "Basic YWRtaW46VDNCbGJrRkpqMw=="
]
"Host" => array:1 [
0 => "192.168.15.25:9200"
]
]
-headerNames: array:5 [
"content-length" => "Content-Length"
"user-agent" => "User-Agent"
"content-type" => "Content-Type"
"authorization" => "Authorization"
"host" => "Host"
]
-protocol: "1.1"
-stream: GuzzleHttp\Psr7\Stream {#159
-stream: stream resource @8
wrapper_type: "PHP"
stream_type: "TEMP"
mode: "w+b"
unread_bytes: 0
seekable: true
uri: "php://temp"
options: []
}
-size: 71
-seekable: true
-readable: true
-writable: true
-uri: "php://temp"
-customMetadata: []
}
}
-handlerContext: array:41 [
"errno" => 7
"error" => "Failed to connect to 192.168.15.25 port 9200: No route to host"
"appconnect_time" => 0.0
"url" => "http://192.168.15.25:9200/likuso_screen/_analyze"
"content_type" => null
"http_code" => 0
"header_size" => 0
"request_size" => 0
"filetime" => -1
"ssl_verify_result" => 0
"redirect_count" => 0
"total_time" => 1.967737
"namelookup_time" => 5.0E-5
"connect_time" => 0.0
"pretransfer_time" => 0.0
"size_upload" => 0.0
"size_download" => 0.0
"speed_download" => 0.0
"speed_upload" => 0.0
"download_content_length" => -1.0
"upload_content_length" => -1.0
"starttransfer_time" => 0.0
"redirect_time" => 0.0
"redirect_url" => ""
"primary_ip" => ""
"certinfo" => []
"primary_port" => 0
"local_ip" => ""
"local_port" => 0
"http_version" => 0
"protocol" => 0
"ssl_verifyresult" => 0
"scheme" => ""
"appconnect_time_us" => 0
"connect_time_us" => 0
"namelookup_time_us" => 50
"pretransfer_time_us" => 0
"redirect_time_us" => 0
"starttransfer_time_us" => 0
"total_time_us" => 1967737
"curl_version" => "7.70.0"
]
#message: "cURL error 7: Failed to connect to 192.168.15.25 port 9200: No route to host (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.15.25:9200/likuso_screen/_analyze"
#code: 0
#file: "/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php"
#line: 210
trace: {
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210 {
GuzzleHttp\Handler\CurlFactory::createRejection(EasyHandle $easy, array $ctx): PromiseInterface …
› $error = isset($connectionErrors[$easy->errno])
› ? new ConnectException($message, $easy->request, null, $ctx)
› : new RequestException($message, $easy->request, $easy->response, null, $ctx);
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:158 {
GuzzleHttp\Handler\CurlFactory::finishError(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface …
›
› return self::createRejection($easy, $ctx);
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:110 {
GuzzleHttp\Handler\CurlFactory::finish(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface …
› if (!$easy->response || $easy->errno) {
› return self::finishError($handler, $easy, $factory);
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:47 {
GuzzleHttp\Handler\CurlHandler->__invoke(RequestInterface $request, array $options): PromiseInterface …
›
› return CurlFactory::finish($this, $easy, $this->factory);
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28 {
GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure} …
› return static function (RequestInterface $request, array $options) use ($default, $sync): PromiseInterface {
› return empty($options[RequestOptions::SYNCHRONOUS]) ? $default($request, $options) : $sync($request, $options);
› };
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:48 {
GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure} …
› return static function (RequestInterface $request, array $options) use ($default, $streaming): PromiseInterface {
› return empty($options['stream']) ? $default($request, $options) : $streaming($request, $options);
› };
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:64 {
GuzzleHttp\PrepareBodyMiddleware->__invoke(RequestInterface $request, array $options): PromiseInterface …
›
› return $fn(Psr7\Utils::modifyRequest($request, $modify), $options);
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Middleware.php:31 {
GuzzleHttp\Middleware::GuzzleHttp\{closure} …
› if (empty($options['cookies'])) {
› return $handler($request, $options);
› } elseif (!($options['cookies'] instanceof CookieJarInterface)) {
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:71 {
GuzzleHttp\RedirectMiddleware->__invoke(RequestInterface $request, array $options): PromiseInterface …
›
› return $fn($request, $options)
› ->then(function (ResponseInterface $response) use ($request, $options) {
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Middleware.php:63 {
GuzzleHttp\Middleware::GuzzleHttp\{closure} …
› }
› return $handler($request, $options)->then(
› static function (ResponseInterface $response) use ($request, $bodySummarizer) {
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/HandlerStack.php:75 {
GuzzleHttp\HandlerStack->__invoke(RequestInterface $request, array $options) …
›
› return $handler($request, $options);
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Client.php:331 {
GuzzleHttp\Client->transfer(RequestInterface $request, array $options): PromiseInterface …
› try {
› return P\Create::promiseFor($handler($request, $options));
› } catch (\Exception $e) {
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Client.php:168 {
GuzzleHttp\Client->requestAsync(string $method, $uri = '', array $options = []): PromiseInterface …
›
› return $this->transfer($request, $options);
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/Client.php:187 {
GuzzleHttp\Client->request(string $method, $uri = '', array $options = []): ResponseInterface …
› $options[RequestOptions::SYNCHRONOUS] = true;
› return $this->requestAsync($method, $uri, $options)->wait();
› }
}
/www/wwwroot/likuso/vendor/guzzlehttp/guzzle/src/ClientTrait.php:95 {
GuzzleHttp\Client->post($uri, array $options = []): ResponseInterface …
› {
› return $this->request('POST', $uri, $options);
› }
}
/www/wwwroot/likuso/extend/es/ClientV2.php:130 {
es\ClientV2->analyze(array $params): ?array …
› }
› $response = $client->post($params['index'] . '/_analyze', $options);
› $json = json_decode((string) $response->getBody(), true);
}
/www/wwwroot/likuso/app/service/CommonService.php:359 {
app\service\CommonService->getCompanyByTitleAndCityCode(string $title, ?array $city, string $field = 'city_code', int $page = 1, int $size = 10): array …
› 'field' => 'key',
› 'text' => $title,
› ],
}
/www/wwwroot/likuso/app/service/CommonService.php:139 {
app\service\CommonService->getDetailData(string $title, string $type, int $id, int $cityCode, int $page, int $limit = 40): array …
› $field = $city['parentid'] ? 'city_code' : 'biaoid';
› $outList = $this->getCompanyByTitleAndCityCode($title, $city, $field, $page, $limit);
› $outList['list'] = $this->companyService->getInfoFromMysqlBySimpleEsSearchList($outList['list'], null, $cityCode, $id, $page);
}
/www/wwwroot/likuso/app/service/HangyeService.php:66 {
app\service\HangyeService->getDetailData(int $id, int $cityCode, int $page, int $size = 40): array …
›
› return $this->commonService->getDetailData($title, 'hangye', $id, $cityCode, $page, $size);
› }
}
/www/wwwroot/likuso/app/controller/Hangye.php:74 {
app\controller\Hangye->detail($city_code, $id, $page = 1): View …
› try {
› $viewData = $this->hangyeService->getDetailData((int) $id, (int) $city_code, (int) $page, $limit);
› $viewData['limit'] = $limit;
}
app\controller\Hangye->detail() {}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Container.php:344 {
think\Container->invokeReflectMethod($instance, $reflect, array $vars = []) …
›
› return $reflect->invokeArgs($instance, $args);
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/route/dispatch/Controller.php:110 {
think\route\dispatch\Controller->think\route\dispatch\{closure} …
›
› $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
›
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/app/middleware/SqlLogMiddleware.php:30 {
app\middleware\SqlLogMiddleware->handle(Request $request, Closure $next): Response …
› });
› return $next($request);
› }
}
app\middleware\SqlLogMiddleware->handle() {}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/app/middleware/CacheMiddleware.php:86 {
app\middleware\CacheMiddleware->handle(Request $request, Closure $next): Response …
› } else {
› $response = $next($request);
› $data = ['tpl' => $response->getData(), 'data' => $response->getVars()];
}
app\middleware\CacheMiddleware->handle() {}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/app/middleware/BaseMiddleware.php:36 {
app\middleware\BaseMiddleware->handle(Request $request, Closure $next): Response …
› $startTime = microtime(true);
› $response = $next($request);
› $endTime = microtime(true);
}
app\middleware\BaseMiddleware->handle() {}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/route/dispatch/Controller.php:113 {
think\route\dispatch\Controller->exec() …
› return $this->autoResponse($data);
› });
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/route/Dispatch.php:90 {
think\route\Dispatch->run(): Response …
›
› $data = $this->exec();
› return $this->autoResponse($data);
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Route.php:785 {
think\Route->think\{closure} …
› ->then(function () use ($dispatch) {
› return $dispatch->run();
› });
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Route.php:786 {
think\Route->dispatch(Request $request, $withRoute = true) …
› return $dispatch->run();
› });
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Http.php:216 {
think\Http->dispatchToRoute($request) …
›
› return $this->app->route->dispatch($request, $withRoute);
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Http.php:206 {
think\Http->think\{closure} …
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
› });
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/vendor/topthink/think-trace/src/TraceDebug.php:71 {
think\trace\TraceDebug->handle($request, Closure $next) …
›
› $response = $next($request);
›
}
think\trace\TraceDebug->handle() {}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Http.php:207 {
think\Http->runWithRequest(Request $request) …
› return $this->dispatchToRoute($request);
› });
› }
}
/www/wwwroot/likuso/vendor/topthink/framework/src/think/Http.php:170 {
think\Http->run(Request $request = null): Response …
› try {
› $response = $this->runWithRequest($request);
› } catch (Throwable $e) {
}
/www/wwwroot/likuso/public/index.php:20 {
›
› $response = $http->run();
›
}
}
}