Laravel guzzle cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
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