After quite some time letting the error message bugging my screen, I figured out a way to solve this.
Yes, it’s a timeout issue, and the codex didn’t help me much. So I tried another approach, by setting a filter;
add_filter( 'http_request_timeout', 'wp9838c_timeout_extend' );
function wp9838c_timeout_extend( $time )
{
// Default timeout is 5
return 10;
}
I hope this could be another reference for someone else in the future.
Related Posts:
- Difference between wp_remote_post and wp_safe_remote_post
- wp_remote_request header error even though working properly with cURL
- Sending JSON string through wp_remote_post()
- How to control accept encoding on HTTP API requests?
- How do I mock HTTP requests for PHPUnit?
- Mutual Authentiction on HTTPS with WordPress HTTP API?
- How to use WordPress HTTP API to download file from remote location
- HTTP digest authentication using wp_remote_get
- How to consume and display external data in WordPress from another website
- cURL vs WP_Http for safety?
- Posting an XML request using HTTP API
- Is it possible to process $_POST / inbound http request in way to automatically create WordPress post?
- How to set charset for wp_remote_post request?
- What’s the best way to detect referrer?
- Behind-the-scenes HTTP Request?
- Sending JSON Payload using Request::request_multiple()
- Return WP_Error as WP_REST_Response
- wp remote post getting a 404 error code
- WP_Http response throws “Cannot use object of type WP_Error as array”
- Proper context for wp_remote_post()
- http_response_timeout filter not working
- wp_remote_post empty $_POST
- How to add code to HTTP header
- Using WP_Http to post data to Webservice without blocking caller script
- get_term_children for immediate children only (not grandchildren)
- How to add Request header in WordPress remote api calls
- Hook into WordPress update?
- How to run multiple Async HTTP requests in WordPress?
- WP_Http_Cookie destroys cookie value through urldecode()
- How can I use CURLOPT_USERPWD in wp_remote_post?
- POST to a REST API from a wordpress form
- Handling nonce generation in AJAX registration process
- Object of class WP_Error could not be converted to string
- wp_remote_post doesn’t work with more than 1024 bytes in the body
- How do I get URL from WP_HTTP object?
- Change the headers content type with wp_remote_post
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- Stuck with wp_remote_post sending data to an external api on user registration
- How to duplicate a curl XML request using HTTP API?
- Does wp_remote_post support asynchronous request?
- Cannot use object of type WP_Error as array
- Inconsistent server code response using HTTP API
- Why is_wp_error() is not returning false even there’s no defined error
- How to customize the critical error message?
- How deactivate the http-api
- creating form for wp_remote_post
- How to make Http Request to a php file present in plugin directory of wordpress
- WP_Error not displaying errors
- Is there an equivalent to WP_Error object I can return in the case of a successful REST request?
- Checking return with WP Error
- WP Remote Request not returning all of content via request
- WordPress notification reports
- Cannot use object of type WP_Error
- How to create custom post by using REST API securely?
- Handle new created WP_Error
- wp_remote_post – handling responses
- How to make a implement queue for scheduling tasks in WordPress?
- XML-code sent via the POST method to the URL (API) [closed]
- Template administration Error after WP 4.8 update
- How to send file by wp_remote_post?
- Get errors from WP_Error to different variables
- Catchable fatal error on 3.6 update
- How to generate “WP_Error” Object for user login?
- How to code auto-retry for API call
- How to send a HTTP Post request using PHP Curl and WordPress
- External HTTP API calls slowing down WordPress admin [closed]
- Send a get request to wordpress
- Why does WP HTTP API switch the method (POST/PURGE) to GET when redirecting (302)?
- Featured Image not shown and getting error “Object of class WP_Error could not be converted to int”
- How To Pass Array To get_the_category_by_ID() and Get An Array Back?
- WordPress video js error this.mediaElement.play is not a function
- Button doesn’t work in the profile panel
- Properly loop through and paginate page on each function call
- Fatal error in wordpress htdocs
- Critical error – can’t post comments
- HTTP API CALLS issue on Woocommerce WordPress
- Post content in wp_remote_post
- How to ignore WP_ERROR caused by “get_the_excerpt” method in an AJAX call?
- Call external API in wordpress based on user input
- WordPress admin panel not working
- Problems getting values from response from wp_remote_post
- Cron and request with wp_remote_post
- wp_remote_post not working with admin-post.php
- Remove unwanted fields from WP API response
- How to receive JSON payload from a digital device
- To stylize WP_Error messages or not?
- wp_remote_post To external API multiple values with the same key
- Error handling for wpdb error – displaying an error message to the user
- wp_remote_post rabobank omnikassa (version2) – error 5001
- Title tag wont change
- Creating custom URLs with template to fetch external JSON
- wp_remote_post and form post
- WordPress wp_remote_post() sending informaiton to Redmine REST API
- saving file to external server vip
- Create plugin/function to catch XML-data via Shortcode
- Webhook: save_post action fires wp_remote_post twice
- Why is this specific API request failing when sending via wp_remote_post?
- wp_remote_post vs curl to send data in WordPress plugin
- Please Help Me, How to Fix PHP Error Undefined Array Key “srcset”
- upload image with rest API to the media library