Intermitent problem REST API

Sometimes WordPress reports the existence of a problem with REST API even on a clean installation without any plugin installed. My ISP says the problem is with Cloudflare. Will it really be like that?

What specific error message are you seeing? Turn on WordPress debugging to see the full stack trace.

1 Like

Site Health reports these errors:
A scheduled event has failed
The scheduled event, recovery_mode_clean_expired_keys, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.
The REST API did not behave correctly
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.

The REST API did not process the context query parameter correctly.

WP_DEBUG_LOG error was not created.
This means no error detected.

I wanted to know the actual server logs with the full call trace – which will show the full technical details of the problem… and not the Site Health report.

Nope: the file should be created even if empty. And your Site Help report clearly indicates some error – at lease some notices or warnings – should be logged.

If the file is not getting created at all, that could mean either your debugging config is incorrect, or there’s some permission or some other problem and WordPress is unable to write the log file.

Then there’s also your webserver’s error logs which you could check.

At this point, I’ll recommend you seek help from the official WordPress support forum:

Good luck!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.