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

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
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x