GuzzleHttp\Exception\ConnectException: cURL error 7

Created on 25 March 2022, over 2 years ago
Updated 16 August 2023, over 1 year ago

When i use post method to get data from API on testing server (Which is on Linux) getting this error. but it is working fine on local as well
as on other server too. but not working on my testing server. unable to resolve. i am using Drupal 9.2 version.
please help.

The error is this:-

The website encountered an unexpected error. Please try again later.

GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to xx.xxx.xxx.xxx port 81: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in GuzzleHttp\Handler\CurlFactory::createRejection() (line 200 of vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php).

💬 Support request
Status

Postponed: needs info

Version

2.7

Component

Code

Created by

🇮🇳India Narendra@drupalchamp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India prsnjtbarman Kolkata

    Hi, When i use port 80 for Varnish on localhost server (Which is on Ubuntu) getting this error while running "/vendo/bin/drush cr" command from terminal

    [error] GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to 127.0.0.1 port 80 after 0 ms: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for 127.0.0.1/tags in /vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210

Production build 0.71.5 2024