I found two errors in the site
the first: (An active PHP session detected)
A PHP session was created by a call to the session_start () function. This interferes with REST API and loopback requests. The session should be closed by session_write_close () before making any HTTP requests.
the second: (The REST API encountered an error)
REST APIs are the way WordPress, and other applications, communicate with the server. One example is the block editor screen, which depends on the REST API to view and save your articles and pages.
The request to the REST API failed due to an error.
Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)
what could be the causes?