Fixed BackWPup plugin Dropbox upload failing with cURL timeout error

How to fix the Dropbox upload failure of the BackWPup plugin with a cURL timeout error?

Recently reconnected BackWPup with my Dropbox account, but every attempt to run the BackWPup plugin backup job fails with the following error ▼

Fixed BackWPup plugin Dropbox upload failing with cURL timeout error

/home/user/public_html/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received

It tries 3 times with the same error each time and then aborts the job.

Test removing Dropbox authentication in the job and reconnecting (changed to the first option, which only allows access to the app, not full access to Dropbox).It still has the same error.

Why does the BackWPup plugin show Dropbox API: cURL error 28: Operation timed out?

Regarding the Dropbox timeout issue of the BackWPup plugin 3.10.0, this version actually uses the native WordPress Http class, so the default setting is 5 seconds, which is too short, causing this error problem.

How to fix BackWPup plugin Dropbox upload failed with cURL timeout error?

directly in the WordPress themefunctions.phpfile, add the following code ▼

//解决Dropbox 上传失败并出现 cURL 超时错误
function __extend_http_request_timeout( $timeout ) {
return 60;
}
add_filter( 'http_request_timeout', '__extend_http_request_timeout' );

Extended reading:

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Fix the BackWPup plugin Dropbox upload failed with cURL timeout error", which is helpful to you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-26556.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top