Skip Navigation

[Resolved] Rest API error reported by WP

This thread is resolved. Here is a description of the problem and solution.

Problem:
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.

Solution:
I checked that the customer's site has Cloudfare CDN on.

I found a similar case where the culprit of this issue was Cloudfare firewall blocking wp-json/wp/v2 requests.

Please check: https://toolset.com/forums/topic/updating-failed-the-response-is-not-a-valid-json-response-3/#post-2159331

I asked the customer to try to exclude wp-admin features from the firewall rules by following the instructions available here: https://developers.cloudflare.com/support/third-party-software/content-management-system-cms/improving-web-security-for-content-management-systems-like-wordpress/

Relevant Documentation:
https://developers.cloudflare.com/support/third-party-software/content-management-system-cms/improving-web-security-for-content-management-systems-like-wordpress/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 1 year, 4 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2678120
#2678177

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I can see your site has Cloudfare CDN on.

I found a similar case where the culprit of this issue was Cloudfare firewall blocking wp-json/wp/v2 requests.

Please check: https://toolset.com/forums/topic/updating-failed-the-response-is-not-a-valid-json-response-3/#post-2159331

Can you please try to exclude wp-admin features from the firewall rules by following the instructions available here: hidden link

Please see if the issue ceases after that.

Thank you
Mateus