WordPress / playground-tools

GNU General Public License v2.0
142 stars 41 forks source link

REST API Encountered an error - Site Health #362

Open jaidevel opened 3 days ago

jaidevel commented 3 days ago

OS: Linux Fedora 41 Desktop: KDE PLASMA 6.8.0 Command line: wp-now start --php=8.2 --blueprint=/home/hsolo/.wp-now/blueprint-wp-dbug.json Blueprint: { "landingPage": "/wp-admin/", "preferredVersions": { "php": "latest", "wp": "latest" }, "steps": [ { "step": "defineWpConfigConsts", "consts": { "WP_DEBUG": true, "WP_DEBUG_DISPLAY": false, "WP_DEBUG_LOG": true, "WP_ENVIRONMENT_TYPE": "development", "WP_DEVELOPMENT_MODE": "theme" } } ] }

When spinning up from a wp-content folder (have not tested from plugin or theme folder). site health gives the following error:

"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: http://localhost:8882/index.php?rest_route=%2Fwp%2Fv2%2Ftypes%2Fpost&context=edit REST API Response: (http_request_failed) fsocket timed out"

As a result embedding Vimeo video with Vimeo Block, does not work, as an example.

adamziel commented 3 days ago

@jaidevel Would it work with Playground CLI? https://github.com/WordPress/wordpress-playground/tree/trunk/packages/playground/cli