Symfony\Component\CssSelector\Exception\InternalErrorException {#25275
#message: "Should have found at least an empty match at 117315."
#code: 0
#file: "/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/Parser/Handler/StringHandler.php"
#line: 58
trace: {
/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:58 {
Symfony\Component\CssSelector\Parser\Handler\StringHandler->handle(Reader $reader, TokenStream $stream): bool …
› if (!$match) {
› throw new InternalErrorException(sprintf('Should have found at least an empty match at %d.', $reader->getPosition()));
› }
}
/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/Parser/Tokenizer/Tokenizer.php:60 {
Symfony\Component\CssSelector\Parser\Tokenizer\Tokenizer->tokenize(Reader $reader): TokenStream …
› foreach ($this->handlers as $handler) {
› if ($handler->handle($reader, $stream)) {
› continue 2;
}
/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/Parser/Parser.php:43 {
Symfony\Component\CssSelector\Parser\Parser->parse(string $source): array …
› $reader = new Reader($source);
› $stream = $this->tokenizer->tokenize($reader);
›
}
/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/XPath/Translator.php:228 {
Symfony\Component\CssSelector\XPath\Translator->parseSelectors(string $css): array …
›
› return $this->mainParser->parse($css);
› }
}
/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/XPath/Translator.php:95 {
Symfony\Component\CssSelector\XPath\Translator->cssToXPath(string $cssExpr, string $prefix = '…20'): string …
› {
› $selectors = $this->parseSelectors($cssExpr);
›
}
/www/wwwroot/us-weathers.com/vendor/symfony/css-selector/CssSelectorConverter.php:67 {
Symfony\Component\CssSelector\CssSelectorConverter->toXPath(string $cssExpr, string $prefix = '…20') …
› {
› return $this->cache[$prefix][$cssExpr] ?? $this->cache[$prefix][$cssExpr] = $this->translator->cssToXPath($cssExpr, $prefix);
› }
}
/www/wwwroot/us-weathers.com/vendor/symfony/dom-crawler/Crawler.php:753 {
Symfony\Component\DomCrawler\Crawler->filter(string $selector) …
› // The CssSelector already prefixes the selector with descendant-or-self::
› return $this->filterRelativeXPath($converter->toXPath($selector));
› }
}
/www/wwwroot/us-weathers.com/app/Http/Controllers/ScrapCommonPhpController.php:27 {
App\Http\Controllers\ScrapCommonPhpController::getData($crawler, $tag, $attr, $attr_value = '') …
› // dd($tag);\r
› $crawler->filter($tag)->each(function($node, $i) use ($attr_value, $attr , &$data ) {\r
› switch ($attr) {\r
}
/www/wwwroot/us-weathers.com/app/Helper/Common.php:293 {
App\Helper\Common::get_weather_current_weathercom($lat, $lng) …
›
› $temp = ScrapCommon::getData($crawler, '.CurrentConditions--primary--'.$clas ,'text');
› //dd($temp);
}
/www/wwwroot/us-weathers.com/app/Helper/Common.php:210 {
App\Helper\Common::get_weather_current($id, $type = 'province') …
› }else{
› $result = self::get_weather_current_weathercom($lat,$lng);
› $data_2 = [
}
/www/wwwroot/us-weathers.com/app/Http/Controllers/DubaothoitietController.php:63 {
App\Http\Controllers\DubaothoitietController->district(Request $request) …
›
› $data_current = Common::get_weather_current($district->id,'district');
› // dd($data_current);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
Illuminate\Routing\Controller->callAction($method, $parameters) …
› {
› return $this->{$method}(...array_values($parameters));
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
Illuminate\Routing\ControllerDispatcher->dispatch(Route $route, $controller, $method) …
› if (method_exists($controller, 'callAction')) {
› return $controller->callAction($method, $parameters);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php:239 {
Illuminate\Routing\Route->runController() …
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php:196 {
Illuminate\Routing\Route->run() …
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685 {
Illuminate\Routing\Router->Illuminate\Routing\{closure} …
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable $e) {
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:77 {
Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle($request, Closure $next) …
› ) {
› return tap($next($request), function ($response) use ($request) {
› if ($this->shouldAddXsrfTokenCookie()) {
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116 {
Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Request $request, $session, Closure $next) …
›
› $response = $next($request);
›
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62 {
Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
› } else {
› return $this->handleStatefulRequest($request, $session, $next);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
› {
› $response = $next($request);
›
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 {
Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687 {
Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
› );
› });
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662 {
Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628 {
Illuminate\Routing\Router->dispatchToRoute(Request $request) …
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617 {
Illuminate\Routing\Router->dispatch(Request $request) …
›
› return $this->dispatchToRoute($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165 {
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
›
› return $this->router->dispatch($request);
› };
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable $e) {
}
/www/wwwroot/us-weathers.com/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:60 {
Barryvdh\Debugbar\Middleware\InjectDebugbar->handle($request, Closure $next) …
› if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63 {
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/fruitcake/laravel-cors/src/HandleCors.php:37 {
Fruitcake\Cors\HandleCors->handle($request, Closure $next) …
› if (! $this->shouldRun($request)) {
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/fideloper/proxy/src/TrustProxies.php:57 {
Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
›
› return $next($request);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 {
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
}
/www/wwwroot/us-weathers.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109 {
Illuminate\Foundation\Http\Kernel->handle($request) …
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Throwable $e) {
}
/www/wwwroot/us-weathers.com/public/index.php:55 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
}
}
}