• Resolved ecabral

    (@ecabral)


    I’m using MAMP for MacOS. Webserver is Apache. All was working fine until I started getting 404 errors earlier today as I was performing some updates/editing.

    I’ve spent a couple of hours trying to find a solution in different foruns/articles. As instructed elsewhere I saved Permalinks (tons of times by now) to regenerate .htaccess, cleared cache, disabled all plugins, have twenty twenty-four enabled. Nothing works. Site Health Status displays the following message:

    The REST API encountered an unexpected result

    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 unexpected result was returned:

    REST API Endpoint: http://localhost:8888/wordpress/wp-json/wp/v2/types/post?context=edit
    REST API Response: (404) Not Found

    How can I fix this?

    Thanks!

Viewing 16 replies (of 16 total)
  • Thread Starter ecabral

    (@ecabral)

    A recent MAMP update brought me to this thread. Again! 🙂

    This time round the theme editor was not loading. Site Health Status was showing a vaguely familiar REST API error. Once again the fix above did the trick!

    I’m reporting this here in case it helps someone else too.

Viewing 16 replies (of 16 total)

The topic ‘The REST API encountered an unexpected result’ is closed to new replies.