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
- wp_http remote request not respecting timeout
- 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
- WP_Error Object in wp_remote_post & wp_remote_get
- Filter any HTTP request URI?
- How to remove rest api link: in http headers?
- How to use the HTTP API with a Proxy?
- get_term_children for immediate children only (not grandchildren)
- How to add Request header in WordPress remote api calls
- Hook into WordPress update?
- Issue with wp_insert_post and post_content field error Could not update post in the database
- Send data to 3rd party api with wp_remote_post on wp_login
- Wp_remote_post not posting data
- How to run multiple Async HTTP requests in WordPress?
- Log in from one wordpress website to another wordpress website
- WP_Http_Cookie destroys cookie value through urldecode()
- HTTP request on localhost failing
- How can I use CURLOPT_USERPWD in wp_remote_post?
- parse XML from URL (via SOAP)
- POST to a REST API from a wordpress form
- How to display error messages using WP_Error class?
- Connect external web app to wordpress
- Handling nonce generation in AJAX registration process
- Object of class WP_Error could not be converted to string
- API JSON Data in WordPress
- wp_remote_post doesn’t work with more than 1024 bytes in the body
- Storing an XML Response (Transient)?
- How do I get URL from WP_HTTP object?
- Change the headers content type with wp_remote_post
- What is the official way to consume the WordPress API? (api.wordpress.org)
- 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
- Allow download_url for lan addresses
- How to duplicate a curl XML request using HTTP API?
- How to check if wp_update_post was successful
- Retrieving Google Plus share count with wp_remote_post
- Does wp_remote_post support asynchronous request?
- How to group multiple wp_errors together?
- Cannot use object of type WP_Error as array
- wp_remote_post with ssl:// protocol
- API getting null values with wp_remote_post
- Unable to show error message using wp_login action
- Extending WordPress REST API
- Inconsistent server code response using HTTP API
- Remote login with only the username not working
- using wp_remote_get to retrieve own url on local host
- Does WordPress’s HTTP API use any caching?
- Why is_wp_error() is not returning false even there’s no defined error
- WordPress wp_remote_post vs wp_remote_request
- How to convert this cURL to wp_remote_get?
- Post body not working with wp_remote_post()
- How to customize the critical error message?
- On Plugin Activation, How Do I Check for Proper Transport Mechanism?
- 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
- Cache WP remote_get HTTP Response using Transients
- 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
- How can I add hyperlink in WP_Error message?
- WordPress customizer Preview not loading
- cURL RETURNTRANSFER function in wp_remote_post
- Cannot use object of type WP_Error
- error Trying to get property of non-object and Cannot use object of type WP_Error as array in
- How to create custom post by using REST API securely?
- Sending post request with wp_remote_post not working correctly
- How to convert this cURL to wp_remote_*?
- Handle new created WP_Error
- How do iterate through all errors for a WP_Error object?
- 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?
- WP_Error with multiple form validation message