Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GuzzleHttp\Exception\ConnectException error #356

Open
jamesmacwhite opened this issue Jul 19, 2022 · 0 comments
Open

GuzzleHttp\Exception\ConnectException error #356

jamesmacwhite opened this issue Jul 19, 2022 · 0 comments
Labels

Comments

@jamesmacwhite
Copy link

Our Sentry queue is reporting this error occurring sometimes with Simplemaps

cURL error 7: Failed to connect to maps.googleapis.com port 443: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://maps.googleapis.com/maps/api/geocode/json?latlng=53.785903,-1.530634&language=en&key=[REDACTED]

Potentially, the Guzzle request could be updated with a try catch so the error is handled?

GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to maps.googleapis.com port 443: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://maps.googleapis.com/maps/api/geocode/json?latlng=53.785903,-1.530634&language=en&key=[REDACTED]
#41 /vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(210): GuzzleHttp\Handler\CurlFactory::createRejection
#40 /vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::finishError
#39 /vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finish
#38 /vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\Handler\CurlHandler::__invoke
#37 /vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}
#36 /vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}
#35 /vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(35): GuzzleHttp\PrepareBodyMiddleware::__invoke
#34 /vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\Middleware::GuzzleHttp\{closure}
#33 /vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\RedirectMiddleware::__invoke
#32 /vendor/guzzlehttp/guzzle/src/Middleware.php(63): GuzzleHttp\Middleware::GuzzleHttp\{closure}
#31 /vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\HandlerStack::__invoke
#30 /vendor/guzzlehttp/guzzle/src/Client.php(331): GuzzleHttp\Client::transfer
#29 /vendor/guzzlehttp/guzzle/src/Client.php(168): GuzzleHttp\Client::requestAsync
#28 /vendor/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Client::request
#27 /vendor/guzzlehttp/guzzle/src/ClientTrait.php(44): GuzzleHttp\Client::get
#26 /vendor/ether/simplemap/src/services/GeoService.php(846): ether\simplemap\services\GeoService::_addressFromLatLng_Google
#25 /vendor/ether/simplemap/src/services/GeoService.php(640): ether\simplemap\services\GeoService::addressFromLatLng
#24 /vendor/ether/simplemap/src/services/MapService.php(275): ether\simplemap\services\MapService::populateMissingData
#23 /vendor/ether/simplemap/src/fields/MapField.php(250): ether\simplemap\fields\MapField::normalizeValue
#22 /vendor/craftcms/cms/src/base/Element.php(4296): craft\base\Element::normalizeFieldValue
#21 /vendor/craftcms/cms/src/base/Element.php(3355): craft\base\Element::getFieldValue
#20 /vendor/craftcms/cms/src/base/Element.php(1764): craft\base\Element::__get
#19 /vendor/craftcms/cms/src/helpers/Template.php(90): craft\helpers\Template::attribute
#18 /storage/runtime/compiled_templates/ca/ca0a2ae92a4b511b468dc0a511b722e0be941aac1f4c84c25380d814be52260c.php(246): __TwigTemplate_fa14cd19f8ef7726b9942c33bafe6aec6dd7e3c0c8a370df3b015bb02731b56e::doDisplay
#17 /vendor/twig/twig/src/Template.php(405): Twig\Template::displayWithErrorHandling
#16 /vendor/twig/twig/src/Template.php(378): Twig\Template::display
#15 /vendor/twig/twig/src/Template.php(390): Twig\Template::render
#14 /vendor/twig/twig/src/TemplateWrapper.php(45): Twig\TemplateWrapper::render
#13 /vendor/twig/twig/src/Environment.php(318): Twig\Environment::render
#12 /vendor/craftcms/cms/src/web/View.php(408): craft\web\View::renderTemplate
#11 /vendor/craftcms/cms/src/web/View.php(461): craft\web\View::renderPageTemplate
#10 /vendor/craftcms/cms/src/web/Controller.php(201): craft\web\Controller::renderTemplate
#9 /vendor/craftcms/cms/src/controllers/TemplatesController.php(102): craft\controllers\TemplatesController::actionRender
#8 [internal](0): call_user_func_array
#7 /vendor/yiisoft/yii2/base/InlineAction.php(57): yii\base\InlineAction::runWithParams
#6 /vendor/yiisoft/yii2/base/Controller.php(178): yii\base\Controller::runAction
#5 /vendor/yiisoft/yii2/base/Module.php(552): yii\base\Module::runAction
#4 /vendor/craftcms/cms/src/web/Application.php(293): craft\web\Application::runAction
#3 /vendor/yiisoft/yii2/web/Application.php(103): yii\web\Application::handleRequest
#2 /vendor/craftcms/cms/src/web/Application.php(278): craft\web\Application::handleRequest
#1 /vendor/yiisoft/yii2/base/Application.php(384): yii\base\Application::run
#0 /index.php(12): null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant