Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://influxdb.server/api/v2/query?org=d875c0a3f40434b0 in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:276
Stack trace:
#0 /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(205): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(157): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 /var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 /var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 /var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(55): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 /var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 /var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 /var/www/html/vendor/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 /var/www/html/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 /var/www/html/vendor/guzzlehttp/guzzle/src/Client.php(138): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#13 /var/www/html/vendor/php-http/client-common/src/HttpClientDecorator.php(28): GuzzleHttp\Client->sendRequest(Object(GuzzleHttp\Psr7\Request))
#14 /var/www/html/vendor/php-http/client-common/src/PluginClient.php(78): Http\Client\Common\EmulatedHttpAsyncClient->sendRequest(Object(GuzzleHttp\Psr7\Request))
#15 /var/www/html/vendor/php-http/client-common/src/Plugin/RedirectPlugin.php(172): Http\Client\Common\PluginClient->Http\Client\Common\{closure}(Object(GuzzleHttp\Psr7\Request))
#16 /var/www/html/vendor/php-http/client-common/src/PluginChain.php(44): Http\Client\Common\Plugin\RedirectPlugin->handleRequest(Object(GuzzleHttp\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#17 /var/www/html/vendor/php-http/client-common/src/Plugin/HeaderDefaultsPlugin.php(41): Http\Client\Common\PluginChain->Http\Client\Common\{closure}(Object(GuzzleHttp\Psr7\Request))
#18 /var/www/html/vendor/php-http/client-common/src/PluginChain.php(44): Http\Client\Common\Plugin\HeaderDefaultsPlugin->handleRequest(Object(GuzzleHttp\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#19 /var/www/html/vendor/php-http/client-common/src/PluginChain.php(59): Http\Client\Common\PluginChain->Http\Client\Common\{closure}(Object(GuzzleHttp\Psr7\Request))
#20 /var/www/html/vendor/php-http/client-common/src/Plugin/RedirectPlugin.php(201): Http\Client\Common\PluginChain->__invoke(Object(GuzzleHttp\Psr7\Request))
#21 /var/www/html/vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php(28): Http\Client\Common\Plugin\RedirectPlugin->Http\Client\Common\Plugin\{closure}(Object(GuzzleHttp\Psr7\Response))
#22 /var/www/html/vendor/php-http/client-common/src/Plugin/RedirectPlugin.php(172): Http\Client\Promise\HttpFulfilledPromise->then(Object(Closure))
#23 /var/www/html/vendor/php-http/client-common/src/PluginChain.php(44): Http\Client\Common\Plugin\RedirectPlugin->handleRequest(Object(GuzzleHttp\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#24 /var/www/html/vendor/php-http/client-common/src/Plugin/HeaderDefaultsPlugin.php(41): Http\Client\Common\PluginChain->Http\Client\Common\{closure}(Object(GuzzleHttp\Psr7\Request))
#25 /var/www/html/vendor/php-http/client-common/src/PluginChain.php(44): Http\Client\Common\Plugin\HeaderDefaultsPlugin->handleRequest(Object(GuzzleHttp\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#26 /var/www/html/vendor/php-http/client-common/src/PluginChain.php(59): Http\Client\Common\PluginChain->Http\Client\Common\{closure}(Object(GuzzleHttp\Psr7\Request))
#27 /var/www/html/vendor/php-http/client-common/src/PluginClient.php(84): Http\Client\Common\PluginChain->__invoke(Object(GuzzleHttp\Psr7\Request))
#28 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php(151): Http\Client\Common\PluginClient->sendRequest(Object(GuzzleHttp\Psr7\Request))
#29 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php(221): InfluxDB2\DefaultApi->sendRequest(Object(GuzzleHttp\Psr7\Request))
#30 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php(79): InfluxDB2\DefaultApi->request('{\n "query": ...', '/api/v2/query', Array, 'POST')
#31 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/QueryApi.php(115): InfluxDB2\DefaultApi->post('{\n "query": ...', '/api/v2/query', Array)
#32 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/QueryApi.php(67): InfluxDB2\QueryApi->postQuery('air_avg = from(...', NULL, Object(InfluxDB2\Model\Dialect))
#33 /var/www/html/index.php(123): InfluxDB2\QueryApi->query('air_avg = from(...')
#34 /var/www/html/index.php(29): getCurrentData(Object(PDO), Object(InfluxDB2\Client))
#35 {main}
Next InfluxDB2\ApiException: [0] cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://influxdb.server/api/v2/query?org=d875c0a3f40434b0 in /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php:186
Stack trace:
#0 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php(221): InfluxDB2\DefaultApi->sendRequest(Object(GuzzleHttp\Psr7\Request))
#1 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php(79): InfluxDB2\DefaultApi->request('{\n "query": ...', '/api/v2/query', Array, 'POST')
#2 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/QueryApi.php(115): InfluxDB2\DefaultApi->post('{\n "query": ...', '/api/v2/query', Array)
#3 /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/QueryApi.php(67): InfluxDB2\QueryApi->postQuery('air_avg = from(...', NULL, Object(InfluxDB2\Model\Dialect))
#4 /var/www/html/index.php(123): InfluxDB2\QueryApi->query('air_avg = from(...')
#5 /var/www/html/index.php(29): getCurrentData(Object(PDO), Object(InfluxDB2\Client))
#6 {main}
thrown in /var/www/html/vendor/influxdata/influxdb-client-php/src/InfluxDB2/DefaultApi.php on line 186