https://lenord.spontaneit.fr/espace-documentaire/arrete-dajap202572-24-juin-2025

Exceptions

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

Exception

GuzzleHttp\Exception\ ConnectException

  1.             }
  2.         }
  3.         // Create a connection exception if it was a specific error code.
  4.         $error = isset($connectionErrors[$easy->errno])
  5.             ? new ConnectException($message$easy->requestnull$ctx)
  6.             : new RequestException($message$easy->request$easy->responsenull$ctx);
  7.         return P\Create::rejectionFor($error);
  8.     }
  1.         // Retry when nothing is present or when curl failed to rewind.
  2.         if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) {
  3.             return self::retryFailedRewind($handler$easy$ctx);
  4.         }
  5.         return self::createRejection($easy$ctx);
  6.     }
  7.     private static function getCurlVersion(): string
  8.     {
  9.         static $curlVersion null;
  1.         if (isset($easy->options['on_stats'])) {
  2.             self::invokeStats($easy);
  3.         }
  4.         if (!$easy->response || $easy->errno) {
  5.             return self::finishError($handler$easy$factory);
  6.         }
  7.         // Return the response if it is present and there is no error.
  8.         $factory->release($easy);
  1.         $easy $this->factory->create($request$options);
  2.         \curl_exec($easy->handle);
  3.         $easy->errno \curl_errno($easy->handle);
  4.         return CurlFactory::finish($this$easy$this->factory);
  5.     }
  6. }
  1.      * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler.
  2.      */
  3.     public static function wrapSync(callable $default, callable $sync): callable
  4.     {
  5.         return static function (RequestInterface $request, array $options) use ($default$sync): PromiseInterface {
  6.             return empty($options[RequestOptions::SYNCHRONOUS]) ? $default($request$options) : $sync($request$options);
  7.         };
  8.     }
  9.     /**
  10.      * Sends streaming requests to a streaming compatible handler while sending
in vendor/guzzlehttp/guzzle/src/Handler/Proxy.php :: GuzzleHttp\Handler\{closure} (line 48)
  1.      * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler.
  2.      */
  3.     public static function wrapStreaming(callable $default, callable $streaming): callable
  4.     {
  5.         return static function (RequestInterface $request, array $options) use ($default$streaming): PromiseInterface {
  6.             return empty($options['stream']) ? $default($request$options) : $streaming($request$options);
  7.         };
  8.     }
  9. }
in vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php :: GuzzleHttp\Handler\{closure} (line 64)
  1.         }
  2.         // Add the expect header if needed.
  3.         $this->addExpectHeader($request$options$modify);
  4.         return $fn(Psr7\Utils::modifyRequest($request$modify), $options);
  5.     }
  6.     /**
  7.      * Add expect header
  8.      */
  1.     public static function cookies(): callable
  2.     {
  3.         return static function (callable $handler): callable {
  4.             return static function ($request, array $options) use ($handler) {
  5.                 if (empty($options['cookies'])) {
  6.                     return $handler($request$options);
  7.                 } elseif (!($options['cookies'] instanceof CookieJarInterface)) {
  8.                     throw new \InvalidArgumentException('cookies must be an instance of GuzzleHttp\Cookie\CookieJarInterface');
  9.                 }
  10.                 $cookieJar $options['cookies'];
  11.                 $request $cookieJar->withCookieHeader($request);
in vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php :: GuzzleHttp\{closure} (line 71)
  1.         if (empty($options['allow_redirects']['max'])) {
  2.             return $fn($request$options);
  3.         }
  4.         return $fn($request$options)
  5.             ->then(function (ResponseInterface $response) use ($request$options) {
  6.                 return $this->checkRedirect($request$options$response);
  7.             });
  8.     }
  1.             return static function ($request, array $options) use ($handler$bodySummarizer) {
  2.                 if (empty($options['http_errors'])) {
  3.                     return $handler($request$options);
  4.                 }
  5.                 return $handler($request$options)->then(
  6.                     static function (ResponseInterface $response) use ($request$bodySummarizer) {
  7.                         $code $response->getStatusCode();
  8.                         if ($code 400) {
  9.                             return $response;
  10.                         }
in vendor/guzzlehttp/guzzle/src/HandlerStack.php :: GuzzleHttp\{closure} (line 75)
  1.      */
  2.     public function __invoke(RequestInterface $request, array $options)
  3.     {
  4.         $handler $this->resolve();
  5.         return $handler($request$options);
  6.     }
  7.     /**
  8.      * Dumps a string representation of the stack.
  9.      *
  1.         $request $this->applyOptions($request$options);
  2.         /** @var HandlerStack $handler */
  3.         $handler $options['handler'];
  4.         try {
  5.             return P\Create::promiseFor($handler($request$options));
  6.         } catch (\Exception $e) {
  7.             return P\Create::rejectionFor($e);
  8.         }
  9.     }
  1.         }
  2.         $request = new Psr7\Request($method$uri$headers$body$version);
  3.         // Remove the option so that they are not doubly-applied.
  4.         unset($options['headers'], $options['body'], $options['version']);
  5.         return $this->transfer($request$options);
  6.     }
  7.     /**
  8.      * Create and send an HTTP request.
  9.      *
in vendor/guzzlehttp/guzzle/src/Client.php -> requestAsync (line 189)
  1.      */
  2.     public function request(string $method$uri '', array $options = []): ResponseInterface
  3.     {
  4.         $options[RequestOptions::SYNCHRONOUS] = true;
  5.         return $this->requestAsync($method$uri$options)->wait();
  6.     }
  7.     /**
  8.      * Get a client configuration option.
  9.      *
Client->request() in src/Service/WemapClient.php (line 71)
  1.                 $params['headers'] = [
  2.                     'Authorization' => 'Basic ' $this->_authToken,
  3.                     'Content-type' => 'application/x-www-form-urlencoded'
  4.                 ];
  5.             }
  6.             $rawResponse $this->client->request('post'$this->_url $url$params);
  7.             return $rawResponse;
  8.         } catch (\GuzzleHttp\Exception\RequestException $e) {
  9.             $response json_decode((string)$e->getResponse()->getBody()->getContents(), null512JSON_THROW_ON_ERROR);
  10.             throw new Exception($response->message$response->code);
  11.         }
WemapClient->post() in src/Service/WemapService.php (line 37)
  1.                 'grant_type' => 'client_credentials',
  2.                 'client_id' => $this->client_id,
  3.             ];
  4.             try {
  5.                 $this->client->setAuthToken('NnI3bW5EOHUxYjBXVW5PNkRxTTJxZzE1NU03dXRTODJmeG83alFNQzoxQW1NUEcxOG83TlhnRUhZeDdjTG1IQzBYYmNSRFVhRGRQQUVTQUJuUEhyaEdKbmF0aUZiZ01TYjJOaktzSmtMZXZVZmEzOHpLNzRMS203aUN2eFZmRVJmMlN1N3dxSDhOaWRtbTFJTk9GRDk4Q2tGQUhvZm9NY2JNaVRFRU9rRA==');
  6.                 $response $this->client->post('/v3.0/oauth2/token'$datastrue);
  7.                 $decode_response json_decode((string)$response->getBody()->getContents(), null512JSON_THROW_ON_ERROR);
  8.                 $this->access_token = ['access_token' => $decode_response->access_token'expires_in' => $decode_response->expires_in];
  9.                 $this->client->setAccessToken($decode_response->access_token);
  10.             } catch (RequestException $e) {
  11.                 $response $e->getResponse();
WemapService->auth() in src/Service/WemapService.php (line 25)
  1.     public function __construct()
  2.     {
  3.         $this->client = new WemapClient();
  4.         $this->client->setPublicKey($this->client_id);
  5.         $this->auth();
  6.         //$this->getAgenda();
  7.     }
  8.     private function auth(): void
  9.     {
  10.         if (empty($this->access_token)) {
  1.         include_once \dirname(__DIR__4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';
  2.         include_once \dirname(__DIR__4).'/src/Controller/Lenord/MainLenordController.php';
  3.         include_once \dirname(__DIR__4).'/src/Service/WemapService.php';
  4.         include_once \dirname(__DIR__4).'/src/Service/SendgridMailService.php';
  5.         $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()));
  6.         $instance->setContainer(($this->privates['.service_locator.mx0UMmY'] ?? $this->get_ServiceLocator_Mx0UMmYService())->withContext('App\\Controller\\Lenord\\MainLenordController'$this));
  7.         return $instance;
  8.     }
in vendor/symfony/dependency-injection/Container.php -> getMainLenordControllerService (line 240)
  1.         try {
  2.             if (isset($this->fileMap[$id])) {
  3.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->load($this->fileMap[$id]);
  4.             } elseif (isset($this->methodMap[$id])) {
  5.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->{$this->methodMap[$id]}();
  6.             }
  7.         } catch (\Exception $e) {
  8.             unset($this->services[$id]);
  9.             throw $e;
  1.      */
  2.     public function get(string $idint $invalidBehavior /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id $this : ($this->factories[$id] ?? [$this'make'])($id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     protected function instantiateController(string $class)
  2.     {
  3.         $class ltrim($class'\\');
  4.         if ($this->container->has($class)) {
  5.             return $this->container->get($class);
  6.         }
  7.         try {
  8.             return parent::instantiateController($class);
  9.         } catch (\Error $e) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function instantiateController(string $class): object
  5.     {
  6.         $controller parent::instantiateController($class);
  7.         if ($controller instanceof ContainerAwareInterface) {
  8.             $controller->setContainer($this->container);
  9.         }
  10.         if ($controller instanceof AbstractController) {
  1.         }
  2.         [$class$method] = explode('::'$controller2);
  3.         try {
  4.             $controller = [$this->instantiateController($class), $method];
  5.         } catch (\Error|\LogicException $e) {
  6.             try {
  7.                 if ((new \ReflectionMethod($class$method))->isStatic()) {
  8.                     return $class.'::'.$method;
  9.                 }
  1.         if (=== substr_count($controller':')) {
  2.             $controller str_replace(':''::'$controller);
  3.             trigger_deprecation('symfony/http-kernel''5.1''Referencing controllers with a single colon is deprecated. Use "%s" instead.'$controller);
  4.         }
  5.         return parent::createController($controller);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.         if (\function_exists($controller)) {
  2.             return $controller;
  3.         }
  4.         try {
  5.             $callable $this->createController($controller);
  6.         } catch (\InvalidArgumentException $e) {
  7.             throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable: '$request->getPathInfo()).$e->getMessage(), 0$e);
  8.         }
  9.         if (!\is_callable($callable)) {
  1.     public function getController(Request $request)
  2.     {
  3.         $e $this->stopwatch->start('controller.get_callable');
  4.         try {
  5.             return $this->resolver->getController($request);
  6.         } finally {
  7.             $e->stop();
  8.         }
  9.     }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getController (line 146)
  1.         if ($event->hasResponse()) {
  2.             return $this->filterResponse($event->getResponse(), $request$type);
  3.         }
  4.         // load controller
  5.         if (false === $controller $this->resolver->getController($request)) {
  6.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  7.         }
  8.         $event = new ControllerEvent($this$controller$request$type);
  9.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/www/nordinfo/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 21:13:48 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?panel=exception",
    "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)