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

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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:200

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:clear

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
()
x