Exceptions
Exception
GuzzleHttp\Exception\ ConnectException
in
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
(line 275)
}}// Create a connection exception if it was a specific error code.$error = isset($connectionErrors[$easy->errno])? new ConnectException($message, $easy->request, null, $ctx): new RequestException($message, $easy->request, $easy->response, null, $ctx);return P\Create::rejectionFor($error);}
in
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
::
createRejection
(line 205)
// Retry when nothing is present or when curl failed to rewind.if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) {return self::retryFailedRewind($handler, $easy, $ctx);}return self::createRejection($easy, $ctx);}private static function getCurlVersion(): string{static $curlVersion = null;
in
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
::
finishError
(line 157)
if (isset($easy->options['on_stats'])) {self::invokeStats($easy);}if (!$easy->response || $easy->errno) {return self::finishError($handler, $easy, $factory);}// Return the response if it is present and there is no error.$factory->release($easy);
in
vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php
::
finish
(line 47)
$easy = $this->factory->create($request, $options);\curl_exec($easy->handle);$easy->errno = \curl_errno($easy->handle);return CurlFactory::finish($this, $easy, $this->factory);}}
in
vendor/guzzlehttp/guzzle/src/Handler/Proxy.php
->
__invoke
(line 28)
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler.*/public static function wrapSync(callable $default, callable $sync): callable{return static function (RequestInterface $request, array $options) use ($default, $sync): PromiseInterface {return empty($options[RequestOptions::SYNCHRONOUS]) ? $default($request, $options) : $sync($request, $options);};}/*** Sends streaming requests to a streaming compatible handler while sending
in
vendor/guzzlehttp/guzzle/src/Handler/Proxy.php
::
GuzzleHttp\Handler\{closure}
(line 48)
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler.*/public static function wrapStreaming(callable $default, callable $streaming): callable{return static function (RequestInterface $request, array $options) use ($default, $streaming): PromiseInterface {return empty($options['stream']) ? $default($request, $options) : $streaming($request, $options);};}}
in
vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
::
GuzzleHttp\Handler\{closure}
(line 64)
}// Add the expect header if needed.$this->addExpectHeader($request, $options, $modify);return $fn(Psr7\Utils::modifyRequest($request, $modify), $options);}/*** Add expect header*/
in
vendor/guzzlehttp/guzzle/src/Middleware.php
->
__invoke
(line 31)
public static function cookies(): callable{return static function (callable $handler): callable {return static function ($request, array $options) use ($handler) {if (empty($options['cookies'])) {return $handler($request, $options);} elseif (!($options['cookies'] instanceof CookieJarInterface)) {throw new \InvalidArgumentException('cookies must be an instance of GuzzleHttp\Cookie\CookieJarInterface');}$cookieJar = $options['cookies'];$request = $cookieJar->withCookieHeader($request);
in
vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
::
GuzzleHttp\{closure}
(line 71)
if (empty($options['allow_redirects']['max'])) {return $fn($request, $options);}return $fn($request, $options)->then(function (ResponseInterface $response) use ($request, $options) {return $this->checkRedirect($request, $options, $response);});}
in
vendor/guzzlehttp/guzzle/src/Middleware.php
->
__invoke
(line 66)
return static function ($request, array $options) use ($handler, $bodySummarizer) {if (empty($options['http_errors'])) {return $handler($request, $options);}return $handler($request, $options)->then(static function (ResponseInterface $response) use ($request, $bodySummarizer) {$code = $response->getStatusCode();if ($code < 400) {return $response;}
in
vendor/guzzlehttp/guzzle/src/HandlerStack.php
::
GuzzleHttp\{closure}
(line 75)
*/public function __invoke(RequestInterface $request, array $options){$handler = $this->resolve();return $handler($request, $options);}/*** Dumps a string representation of the stack.*
in
vendor/guzzlehttp/guzzle/src/Client.php
->
__invoke
(line 333)
$request = $this->applyOptions($request, $options);/** @var HandlerStack $handler */$handler = $options['handler'];try {return P\Create::promiseFor($handler($request, $options));} catch (\Exception $e) {return P\Create::rejectionFor($e);}}
in
vendor/guzzlehttp/guzzle/src/Client.php
->
transfer
(line 169)
}$request = new Psr7\Request($method, $uri, $headers, $body, $version);// Remove the option so that they are not doubly-applied.unset($options['headers'], $options['body'], $options['version']);return $this->transfer($request, $options);}/*** Create and send an HTTP request.*
in
vendor/guzzlehttp/guzzle/src/Client.php
->
requestAsync
(line 189)
*/public function request(string $method, $uri = '', array $options = []): ResponseInterface{$options[RequestOptions::SYNCHRONOUS] = true;return $this->requestAsync($method, $uri, $options)->wait();}/*** Get a client configuration option.*
$params['headers'] = ['Authorization' => 'Basic ' . $this->_authToken,'Content-type' => 'application/x-www-form-urlencoded'];}$rawResponse = $this->client->request('post', $this->_url . $url, $params);return $rawResponse;} catch (\GuzzleHttp\Exception\RequestException $e) {$response = json_decode((string)$e->getResponse()->getBody()->getContents(), null, 512, JSON_THROW_ON_ERROR);throw new Exception($response->message, $response->code);}
'grant_type' => 'client_credentials','client_id' => $this->client_id,];try {$this->client->setAuthToken('NnI3bW5EOHUxYjBXVW5PNkRxTTJxZzE1NU03dXRTODJmeG83alFNQzoxQW1NUEcxOG83TlhnRUhZeDdjTG1IQzBYYmNSRFVhRGRQQUVTQUJuUEhyaEdKbmF0aUZiZ01TYjJOaktzSmtMZXZVZmEzOHpLNzRMS203aUN2eFZmRVJmMlN1N3dxSDhOaWRtbTFJTk9GRDk4Q2tGQUhvZm9NY2JNaVRFRU9rRA==');$response = $this->client->post('/v3.0/oauth2/token', $datas, true);$decode_response = json_decode((string)$response->getBody()->getContents(), null, 512, JSON_THROW_ON_ERROR);$this->access_token = ['access_token' => $decode_response->access_token, 'expires_in' => $decode_response->expires_in];$this->client->setAccessToken($decode_response->access_token);} catch (RequestException $e) {$response = $e->getResponse();
public function __construct(){$this->client = new WemapClient();$this->client->setPublicKey($this->client_id);$this->auth();//$this->getAgenda();}private function auth(): void{if (empty($this->access_token)) {
in
var/cache/dev/ContainerE6dfdSN/App_KernelDevDebugContainer.php
->
__construct
(line 2218)
include_once \dirname(__DIR__, 4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';include_once \dirname(__DIR__, 4).'/src/Controller/Lenord/MainLenordController.php';include_once \dirname(__DIR__, 4).'/src/Service/WemapService.php';include_once \dirname(__DIR__, 4).'/src/Service/SendgridMailService.php';$this->services['App\\Controller\\Lenord\\MainLenordController'] = $instance = new \App\Controller\Lenord\MainLenordController(($this->services['doctrine.orm.default_entity_manager'] ?? $this->getDoctrine_Orm_DefaultEntityManagerService()), ($this->privates['App\\Utilities\\Feed'] ?? $this->getFeedService()), ($this->services['App\\Service\\ElasticsearchService'] ?? $this->getElasticsearchServiceService()), new \App\Service\WemapService(), ($this->privates['App\\Service\\RssService'] ?? $this->getRssServiceService()), ($this->services['App\\Service\\EpingleService'] ?? $this->getEpingleServiceService()), ($this->privates['App\\Service\\SendgridMailService'] ?? ($this->privates['App\\Service\\SendgridMailService'] = new \App\Service\SendgridMailService())), ($this->services['App\\Service\\SeoService'] ?? $this->getSeoServiceService()));$instance->setContainer(($this->privates['.service_locator.mx0UMmY'] ?? $this->get_ServiceLocator_Mx0UMmYService())->withContext('App\\Controller\\Lenord\\MainLenordController', $this));return $instance;}
in
vendor/symfony/dependency-injection/Container.php
->
getMainLenordControllerService
(line 240)
try {if (isset($this->fileMap[$id])) {return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $this->load($this->fileMap[$id]);} elseif (isset($this->methodMap[$id])) {return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $this->{$this->methodMap[$id]}();}} catch (\Exception $e) {unset($this->services[$id]);throw $e;
in
vendor/symfony/dependency-injection/Container.php
->
make
(line 220)
*/public function get(string $id, int $invalidBehavior = /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1){return $this->services[$id]?? $this->services[$id = $this->aliases[$id] ?? $id]?? ('service_container' === $id ? $this : ($this->factories[$id] ?? [$this, 'make'])($id, $invalidBehavior));}/*** Creates a service.*
in
vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php
->
get
(line 53)
protected function instantiateController(string $class){$class = ltrim($class, '\\');if ($this->container->has($class)) {return $this->container->get($class);}try {return parent::instantiateController($class);} catch (\Error $e) {
in
vendor/symfony/framework-bundle/Controller/ControllerResolver.php
->
instantiateController
(line 29)
/*** {@inheritdoc}*/protected function instantiateController(string $class): object{$controller = parent::instantiateController($class);if ($controller instanceof ContainerAwareInterface) {$controller->setContainer($this->container);}if ($controller instanceof AbstractController) {
in
vendor/symfony/http-kernel/Controller/ControllerResolver.php
->
instantiateController
(line 120)
}[$class, $method] = explode('::', $controller, 2);try {$controller = [$this->instantiateController($class), $method];} catch (\Error|\LogicException $e) {try {if ((new \ReflectionMethod($class, $method))->isStatic()) {return $class.'::'.$method;}
in
vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php
->
createController
(line 42)
if (1 === substr_count($controller, ':')) {$controller = str_replace(':', '::', $controller);trigger_deprecation('symfony/http-kernel', '5.1', 'Referencing controllers with a single colon is deprecated. Use "%s" instead.', $controller);}return parent::createController($controller);}/*** {@inheritdoc}*/
in
vendor/symfony/http-kernel/Controller/ControllerResolver.php
->
createController
(line 86)
if (\function_exists($controller)) {return $controller;}try {$callable = $this->createController($controller);} catch (\InvalidArgumentException $e) {throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable: ', $request->getPathInfo()).$e->getMessage(), 0, $e);}if (!\is_callable($callable)) {
in
vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php
->
getController
(line 39)
public function getController(Request $request){$e = $this->stopwatch->start('controller.get_callable');try {return $this->resolver->getController($request);} finally {$e->stop();}}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
getController
(line 146)
if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}// load controllerif (false === $controller = $this->resolver->getController($request)) {throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));}$event = new ControllerEvent($this, $controller, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;}public function run(): int{$response = $this->kernel->handle($this->request);$response->send();if ($this->kernel instanceof TerminableInterface) {$this->kernel->terminate($this->request, $response);}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 19:33:34 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "9c07bc"
},
"request_uri": "https://nordinfo.spontaneit.fr/_profiler/9c07bc",
"method": "GET"
}
|
Stack Trace
|
ConnectException
|
|---|
GuzzleHttp\Exception\ConnectException:
cURL error 6: Could not resolve host: api.getwemap.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.getwemap.com/v3.0/oauth2/token
at vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:275
at GuzzleHttp\Handler\CurlFactory::createRejection()
(vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:205)
at GuzzleHttp\Handler\CurlFactory::finishError()
(vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:157)
at GuzzleHttp\Handler\CurlFactory::finish()
(vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:47)
at GuzzleHttp\Handler\CurlHandler->__invoke()
(vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28)
at GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
(vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:48)
at GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
(vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:64)
at GuzzleHttp\PrepareBodyMiddleware->__invoke()
(vendor/guzzlehttp/guzzle/src/Middleware.php:31)
at GuzzleHttp\Middleware::GuzzleHttp\{closure}()
(vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:71)
at GuzzleHttp\RedirectMiddleware->__invoke()
(vendor/guzzlehttp/guzzle/src/Middleware.php:66)
at GuzzleHttp\Middleware::GuzzleHttp\{closure}()
(vendor/guzzlehttp/guzzle/src/HandlerStack.php:75)
at GuzzleHttp\HandlerStack->__invoke()
(vendor/guzzlehttp/guzzle/src/Client.php:333)
at GuzzleHttp\Client->transfer()
(vendor/guzzlehttp/guzzle/src/Client.php:169)
at GuzzleHttp\Client->requestAsync()
(vendor/guzzlehttp/guzzle/src/Client.php:189)
at GuzzleHttp\Client->request()
(src/Service/WemapClient.php:71)
at App\Service\WemapClient->post()
(src/Service/WemapService.php:37)
at App\Service\WemapService->auth()
(src/Service/WemapService.php:25)
at App\Service\WemapService->__construct()
(var/cache/dev/ContainerE6dfdSN/App_KernelDevDebugContainer.php:2218)
at ContainerE6dfdSN\App_KernelDevDebugContainer->getMainLenordControllerService()
(vendor/symfony/dependency-injection/Container.php:240)
at Symfony\Component\DependencyInjection\Container->make()
(vendor/symfony/dependency-injection/Container.php:220)
at Symfony\Component\DependencyInjection\Container->get()
(vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:53)
at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
(vendor/symfony/framework-bundle/Controller/ControllerResolver.php:29)
at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
(vendor/symfony/http-kernel/Controller/ControllerResolver.php:120)
at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
(vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:42)
at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->createController()
(vendor/symfony/http-kernel/Controller/ControllerResolver.php:86)
at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
(vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:39)
at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
(vendor/symfony/http-kernel/HttpKernel.php:146)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:35)
at require_once('/home/www/nordinfo/vendor/autoload_runtime.php')
(public/index.php:5)
|