I get "connection was reset" error every single time I try and place a block in Drupal 8.
Apache error:
Error while attempting to read POST data: 400, referer: http://website/admin/structure/block
Related
I'm using the following code. Assume $url is something like https://example.com/cron/cron.php. I'm getting the failure message, but it's actually working because in the linked script I send out an e-mail and I am receiving the e-mails.
So if it's working, then why is is_wp_error triggering?
if (is_wp_error($wp_remote_get = wp_remote_get($url))) {
echo "Failed to get script. Error: " . $wp_remote_get->get_error_message() . " Exiting...";
exit;
}
Got error: Failed to get script. Error: cURL error 28: Operation timed out after 5004 milliseconds with 0 out of -1 bytes received
So it was a bit of a silly issue. wp_remote_get retrieves the http response, but I thought it would just be visiting the url to run the script. The script takes a while to complete, so it must be running into time limits, which is what the error message seems to be suggesting.
I resolved this by just using wp_redirect instead. Would be nice if I can find a way to run the other script without redirecting though.
When I created WordPress, add theme/plugins, the order showing as follow:
RSS Error: WP HTTP Error: cURL error 27: SSL: couldn't create a context: error:140A90A1:SSL routines:SSL_CTX_new:library has no ciphers
Does anyone know how to deal with the problem? Thank you.
I have the following fatal error when trying to use Curl GET Method using woocommerce rest api V3 in WordPress. I have try to set_time_limit(0) and also, try with wp_remote_get method of WordPress but not solve issue. this because I get errors and I'm not able to fix them. I've set the timeout to 30 seconds. Also with this settings I get a timeout error and getting null response from REST API.
Fatal error: cURL Error: Operation timed out after 30009 milliseconds with 0 bytes received
Anyone have suggestion to fix this?
I think the answer here is likely what you're looking for https://wordpress.stackexchange.com/a/346236/31838
Increase the request timeout with a http_request_timeout filter
function custom_http_request_timeout( ) {
return 90;
}
add_filter( 'http_request_timeout', 'custom_http_request_timeout' );
I'm trying to setup monitoring (http-ecv) with authorization header, but I'm getting illegal character or header folding error (jetty 9.3)
1. example
GET /somepath/somepage.html HTTP/1.1
Server Running
\r\nAuthorization: Basic somestring=\r\n
Response "HTTP1.1 400 Illegal character SPACE=''\r\n"
2. example
GET /somepath/somepage.html
Server Running
HTTP/1.1\r\nAuthorization: Basic somestring=\r\n
Response HTTP/1.1 400 Illegal character VCHAR='/'\r\n
This example was working on older jetty version
3.example
GET /somepath/somepage.html
Server Running
\r\nHTTP/1.1\r\nAuthorization: Basic somestring=\r\n
Response HTTP1.1 400 Header Folding\r\n
Any ideas?
try the solution on the article https://support.citrix.com/article/CTX117142
edit to add more context: the article describes how to create a monitor for a back end server that requests basic authentication with a user name and password.
Summarized:
add lb monitor test_login_tcp TCP-ECV -send "GET / HTTP/1.1\r\nAuthorization: Basic YOURBASE64USERPW\r\nHost: IP_or_FQDN\r\n\r\n" -recv 200 -LRTM ENABLED
I have an error displaying when trying to test rest password fonctionality for laravel.
This error is displayed:
Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "530", with message "530 5.7.0 Must issue a STARTTLS command first. q130sm23434521wmd.29 - gsmtp
"