• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

cURL error 7: Failed to connect to localhost

Gudea

Member
I've been using Pabbly connect successfully for 3 days to create sales orders in Zoho inventory whenever a sales order is created in Woocommerce. But now suddenly it stopped. I checked the workflow, the first task is excuted sucsessfully and the Woocommerce order data are received but the task of Woocommerce meta data extractor has this error:
196 }197 198 // Create a connection exception if it was a specific error code.199 $error = isset($connectionErrors[$easy-&gt;errno])<b>200 ? new ConnectException($message, $easy-&gt;request, null, $ctx)</b>201 : new RequestException($message, $easy-&gt;request, $easy-&gt;response, null, $ctx);202 203 return \GuzzleHttp\Promise\rejection_for($error);204 }

I've received an email with this information:

Task History ID: IjU3NjUwNTZjMDYzZTA0Mzc1MjY5NTUzNjUxMzc1MTY3NTQzNDBmMzci_pc
Step Name: Data Transformer (Pabbly) > WooCommerce Meta Data Extractor
Connection Name: N.A.
Task Error Detail:

{
"res1 > success": "",
"res1 > title": "GuzzleHttp\\Exception\\ConnectException",
"res1 > message": "cURL error 7: Failed to connect to localhost port 9002 after 0 ms: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 200",
"res1 > trace": "#0 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\\Handler\\CurlFactory::createRejection()\n#1 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\\Handler\\CurlFactory::finishError()\n#2 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\\Handler\\CurlFactory::finish()\n#3 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\\Handler\\CurlHandler-\u003E__invoke()\n#4 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\\Handler\\Proxy::GuzzleHttp\\Handler\\{closure}()\n#5 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\\Handler\\Proxy::GuzzleHttp\\Handler\\{closure}()\n#6 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Middleware.php(29): GuzzleHttp\\PrepareBodyMiddleware-\u003E__invoke()\n#7 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\\Middleware::GuzzleHttp\\{closure}()\n#8 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Middleware.php(57): GuzzleHttp\\RedirectMiddleware-\u003E__invoke()\n#9 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/HandlerStack.php(71): GuzzleHttp\\Middleware::GuzzleHttp\\{closure}()\n#10 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Client.php(361): GuzzleHttp\\HandlerStack-\u003E__invoke()\n#11 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Client.php(163): GuzzleHttp\\Client-\u003Etransfer()\n#12 /var/www/html/api.pabbly/fusio/vendor/guzzlehttp/guzzle/src/Client.php(183): GuzzleHttp\\Client-\u003ErequestAsync()\n#13 /var/www/html/api.pabbly/fusio/vendor/fusio/adapter-http/src/Action/HttpEngine.php(145): GuzzleHttp\\Client-\u003Erequest()\n#14 /var/www/html/api.pabbly/fusio/vendor/fusio/adapter-http/src/Action/HttpProcessor.php(53): Fusio\\Adapter\\Http\\Action\\HttpEngine-\u003Ehandle()\n#15 /var/www/html/api.pabbly/fusio/vendor/fusio/engine/src/Processor.php(70): Fusio\\Adapter\\Http\\Action\\HttpProcessor-\u003Ehandle()\n#16 /var/www/html/api.pabbly/fusio/vendor/fusio/impl/src/Controller/SchemaApiController.php(281): Fusio\\Engine\\Processor-\u003Eexecute()\n#17 /var/www/html/api.pabbly/fusio/vendor/fusio/impl/src/Controller/SchemaApiController.php(187): Fusio\\Impl\\Controller\\SchemaApiController-\u003EexecuteAction()\n#18 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Controller/SchemaApiAbstract.php(137): Fusio\\Impl\\Controller\\SchemaApiController-\u003EdoPost()\n#19 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Controller/ControllerAbstract.php(172): PSX\\Framework\\Controller\\SchemaApiAbstract-\u003EonPost()\n#20 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Controller/SchemaApiAbstract.php(99): PSX\\Framework\\Controller\\ControllerAbstract-\u003EonRequest()\n#21 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Controller/ControllerAbstract.php(138): PSX\\Framework\\Controller\\SchemaApiAbstract-\u003EonRequest()\n#22 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/FilterChain.php(110): PSX\\Framework\\Controller\\ControllerAbstract-\u003Ehandle()\n#23 /var/www/html/api.pabbly/fusio/vendor/fusio/impl/src/Filter/Logger.php(68): PSX\\Http\\Filter\\FilterChain-\u003Ehandle()\n#24 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/FilterChain.php(110): Fusio\\Impl\\Filter\\Logger-\u003Ehandle()\n#25 /var/www/html/api.pabbly/fusio/vendor/fusio/impl/src/Filter/RequestLimit.php(75): PSX\\Http\\Filter\\FilterChain-\u003Ehandle()\n#26 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/FilterChain.php(110): Fusio\\Impl\\Filter\\RequestLimit-\u003Ehandle()\n#27 /var/www/html/api.pabbly/fusio/vendor/fusio/impl/src/Filter/Authentication.php(66): PSX\\Http\\Filter\\FilterChain-\u003Ehandle()\n#28 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/FilterChain.php(110): Fusio\\Impl\\Filter\\Authentication-\u003Ehandle()\n#29 /var/www/html/api.pabbly/fusio/vendor/fusio/impl/src/Filter/AssertMethod.php(95): PSX\\Http\\Filter\\FilterChain-\u003Ehandle()\n#30 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/FilterChain.php(110): Fusio\\Impl\\Filter\\AssertMethod-\u003Ehandle()\n#31 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/UserAgentEnforcer.php(43): PSX\\Http\\Filter\\FilterChain-\u003Ehandle()\n#32 /var/www/html/api.pabbly/fusio/vendor/psx/http/src/Filter/FilterChain.php(110): PSX\\Http\\Filter\\UserAgentEnforcer-\u003Ehandle()\n#33 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Loader/Loader.php(123): PSX\\Http\\Filter\\FilterChain-\u003Ehandle()\n#34 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Loader/Loader.php(102): PSX\\Framework\\Loader\\Loader-\u003Eexecute()\n#35 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Dispatch/Dispatch.php(125): PSX\\Framework\\Loader\\Loader-\u003Eload()\n#36 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Environment/WebServer/Engine.php(47): PSX\\Framework\\Dispatch\\Dispatch-\u003Eroute()\n#37 /var/www/html/api.pabbly/fusio/vendor/psx/framework/src/Environment/Environment.php(67): PSX\\Framework\\Environment\\WebServer\\Engine-\u003Eserve()\n#38 /var/www/html/api.pabbly/fusio/public/index.php(29): PSX\\Framework\\Environment\\Environment-\u003Eserve()\n#39 {main}",
"res1 > context": "196 }\n197 \n198 // Create a connection exception if it was a specific error code.\n199 $error = isset($connectionErrors[$easy->errno])\n\u003Cb\u003E200 ? new ConnectException($message, $easy->request, null, $ctx)\n\u003C/b\u003E201 : new RequestException($message, $easy->request, $easy->response, null, $ctx);\n202 \n203 return \\GuzzleHttp\\Promise\\rejection_for($error);\n204 }\n",
"res2 > status": "error",
"res2 > message": "Empty data",
"res3 > message": "Forbidden"
}
 
D

Deleted member 15445

Guest
Hey @Gudea

We checked your workflow and the task history shows that the workflow re-executed the errors and is working perfectly now. As there was an issue earlier which has been fixed.

1734509839937.png


Although, to avoid these errors, we would recommend you turning on the "simple response" button. Further, kindly map the values from "Res2" responses, instead of "Res1" and "Res3".

Let us know if it works for you.
 
Top