"The REST API encountered an unexpected result" + "Your site could not complete a loopback request"

Hello!

I have the following error messages on my WordPress dashboard:

The REST API encountered an unexpected result
Your site could not complete a loopback request

I think this is related to Cloudflare.

On one of my websites, these errors were solved by adding the server’s IP address to Cloudflare’s whitelist. But on my other website, I don’t have that option on my cPanel. I would like to know how to do this in my Cloudflare account and also if there’s anything else that I can do to fix these errors.

Thank you in advance!

Hello,
You can check any request blocked or challenged by Cloudflare in the Firewall Events:

I would recommend checking that, and make sure to add either an IP Access Rules with the Allow action or a Firewall Rules with the Bypass action in case you encounter false positive:

https://developers.cloudflare.com/firewall/cf-firewall-rules/actions

Hi, thank you for your reply. I tried that already but it doesn’t seem to solve the issue. Is there anything else that I can try?

I get this every once in a while, and I know it’s occasionally my fault when I tighten up the firewall. In those cases, it doesn’t take long to get that warning, but when I fix my mistake, it takes a while for that error message to go away.

In other words, yours may be temporary.

I am still having the issue and I don’t know what else to do.

Can anybody please help…?

You still haven’t responded to the very first suggestion: Firewall Events.

I followed the recommendation to add an IP Access Rule but it didn’t work.

Once again: can anybody please help?

I am just sincerely asking for help…

Cool, thanks…

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