Uncaught exception if server can't resolve host

Created on 23 January 2020, about 5 years ago
Updated 26 March 2025, 11 days ago

If the web server is temporarily unable to resolve the host for instagram, the following fatal error occurs:

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">GuzzleHttp\Exception\ConnectException</em>: cURL error 6: Could not resolve host: www.instagram.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in <em class="placeholder">GuzzleHttp\Handler\CurlFactory::createRejection()</em> (line <em class="placeholder">200</em> of <em class="placeholder">/var/www/mrm/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php</em>).

This can be reproduced in a local environment by disabling network connectivity.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom malcomio

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
Production build 0.71.5 2024