Importer Datasource: cURL error 28

Closed

Import WP Pro Updated 2 months ago 2 Replies

Callum asked 3 months ago on October 28, 2024 at 9:02 pm

Hi!

Is there any way to fix this issue? Only just started to cause issues. Never happened before, was wondering if it’s happened before?

Many thanks!

J

James replied Support Agent

3 months ago on October 28, 2024 at 9:38 pm

Hi Callum,

I googled a curl 28 error, this is in regards to downloading either the xml/csv file or an attachment, depending on where the error was displayed. The error:

The cURL error 28 indicates a connection timeout, which means WordPress is unable to receive a response from a requested server within a specified time period. Addressing a failed cURL requests promptly is crucial for preserving your website's performance and ensuring a positive user experience.

Basically means the file downloaded took to long.

A solution may be to increase the curl timeout in wordpress (changing it to 60 seconds):

add_filter('http_request_args', function ($args) {
    $args['timeout'] =  60;
    return $args;
});

James

J

James replied Support Agent

2 months ago on November 10, 2024 at 9:22 pm

Hello Callum

This ticket is being marked as closed due to inactivity.

If this is not the case, please reply to this ticket to re-open it.

James