Laravel guzzle cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

Error

There is some exception in QuoteManagementController->getFileMgmntAccessToken()
[2023-06-22 08:39:33] production.INFO: GuzzleHttp\Exception\ConnectException: cURL error 6: Couldn't resolve host 'www.mhn-file-management-ms' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200Code language: PHP (php)

Solution

Go to the .env file and change the Base URL

This is Right base URL

https://www.myhospitalnow.com/file_managament/

Run these commands together:

php artisan route:clear
php artisan config:clear
php artisan cache:clearCode language: CSS (css)

To clear all caches in Laravel

php artisan optimize:clear
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x