How to Solve "Rest Api Encountered an Unexpected Result"?

Hi,
On my wordpress dashboard i am seeing that kind of warning:

Rest Api Encountered an Unexpected Result

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

The REST API call gave the following unexpected result: (404) <title>404 Not Found</title>

Not Found

The requested URL was not found on this server.


<address>Apache/2.4.41 (Ubuntu) Server at www.example.com Port 443</address> ."

Beside this i am unable to create new pages on wordpress. When I try to create a page it is saying "Updating failed. The response is not a valid JSON response."

How can I solve this problem? Thank you.

1 Reply

Based on the error message that you provided, I can tell this is something specific to WordPress. With that in mind, I searched their support forum and found a post from within the past year where a person stated they fixed this issue by making changes to their permalink settings:

The REST API encountered an unexpected result = 404 Not Found error

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct