The REST API is one way that WordPress and other applications communicate with the server.

taker18

Verified User
Joined
Oct 18, 2021
Messages
140
Location
USA
At all my website at the health check wordpress at the same time, and the website are extremely slow and sluggish

The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

When testing the REST API, an error was encountered:

REST API Endpoint: https://mydomain.com/index.php?rest_route=/wp/v2/types/post&context=edit
REST API Response: (http_request_failed) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received
all the sites
I had some update and i did it and it went away for an hour than came bak

can someone know about it
 
At all my website at the health check wordpress at the same time, and the website are extremely slow and sluggish
allow me to share the solution that I found it has something to do with max_execution_time, while mine was 600 which was causing the issue . I started to think what is the right setup for the the PHP setting.

this is my current PHP setting which I think needs adjustment
what is the proper

max input time ?
max input Vars?
[COLOR=rgba(255, 255, 255, 0.87)]
max_execution_time30
Delete
max_input_time300
Delete
max_input_vars5000
Delete
memory_limit
1024M
Delete
post_max_size
128M
Delete
upload_max_filesize
128M
Delete
 
this solution above did solve my issue its still the same:
REST API Response: (http_request_failed) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received
help is appreciate it

in addition to all different type of errors


Screen Shot 2024-09-03 at 8.47.04 PM.png
 
Last edited:
More information that might help if any one knows when i checked Apache error logs /var/log/httpd/error_log

2024-09-04 12:40:30.203541 [ERROR] [79847] No listener is available, stop server!
2024-09-04 12:40:30.305768 [ERROR] [79848] No listener is available, stop server!
2024-09-04 12:40:30.407896 [ERROR] [79849] No listener is available, stop server!
2024-09-04 12:40:30.509865 [ERROR] [79850] No listener is available, stop server!
2024-09-04 12:40:30.611756 [ERROR] [79851] No listener is available, stop server!

anyone has any solution
Thank you
 
Back
Top