REST API error
-
Site Health Status gives the following warning:
‘When testing the REST API, an error was encountered:
REST API Endpoint: https://sasa-mbf.com.hr/wp-json/wp/v2/types/post?context=edit
REST API Response: (http_request_failed) cURL error 28: Connection timed out after 10000 milliseconds’An attempt to open the Endpoint (https://sasa-mbf.com.hr/wp-json/wp/v2/types/post?context=edit) results in an error message:
{‘code’:’rest_forbidden_context’,’message’:’Sorry, you are not allowed to edit posts in this post type.’,’data’:{‘status’:401}}It is a basic installation of WP without any plugins.
I have tried various combinations of editing the .htaccess file (such as adding RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ), but nothing solved the problem.
I don’t see any potentially problematic entry in the wp-config.php file.
I would appreciate any suggestion to solve this issue.Self-declared URL: https://sasa.mbf.com.hr
Jetpack: Unknown
WP.com: UnknownThe blog I need help with is: (visible only to logged in users)
-
Hello!
Thank you for reaching out to the free support forums for websites hosted on WordPress.com. While your site is not hosted with us, we’re here to guide you in the right direction for assistance.
Since you’re using the open-source version of the WordPress platform, which operates differently from what we provide on WordPress.com, you can find help at the community forums here:
https://wordpress.org/support/forum/how-to-and-troubleshooting/
The community members in the open-source forum are well-versed in these matters and are in the best position to offer support.
I hope this information helps guide you in the right direction. Feel free to ask if you have any further questions or need more assistance.
- The topic ‘REST API error’ is closed to new replies.