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

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

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