Title: Rest API Endpoint Error
Last modified: December 17, 2024

---

# Rest API Endpoint Error

 *  Resolved [Flyter](https://wordpress.org/support/users/flyter/)
 * (@flyter)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-endpoint-error-2/)
 * WordPress shows I have this error on health check. Error log and debug log show
   no info on this. Does anyone how I could fix this ? Problem only goes away when
   I disable woocommerce.
 * REST API endpoint: [https://example.com/wp-json/wp/v2/types/post?context=edit](https://example.com/wp-json/wp/v2/types/post?context=edit)
 * REST API Response: (400) Bad Request

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-endpoint-error-2/#post-18203194)
 * **Hi there,**
 * Thank you for reaching out!
 * The issue you’re describing, where the WordPress REST API returns a “400 Bad 
   Request” error, could be caused by a conflict with a plugin or theme on your 
   site.
 * To troubleshoot further, could you please deactivate all plugins except WooCommerce
   and see if that resolves the issue? For more details on how to run a conflict
   test, you can refer to this article:
   [How to Test for Conflicts](https://woocommerce.com/document/how-to-test-for-conflicts/)
   In the meantime, I’d like to understand your site properly. Please share with
   us the necessary information below for us to investigate the issue further:
    - **System Status Report** which you can find via WooCommerce > Status > Get
      system report > Copy for support.
    - **Fatal error logs** (if any) under WooCommerce > Status > Logs.
 * Once we have more information, we’ll be able to assist you further.
 *  Thread Starter [Flyter](https://wordpress.org/support/users/flyter/)
 * (@flyter)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-endpoint-error-2/#post-18203684)
 * Hey [@shahzeenfarooq](https://wordpress.org/support/users/shahzeenfarooq/),
 * The first time I tested, the problem only disappeared when I disabled woocommerce,
   but I did it in LocalWP. This time that you asked I tried to replicate it even
   more and created a staging website, and even after disabling every plugin including
   woocommerce and switch to 25 theme the error still ocurred.
 * Now I am not sure if this woocommerce related or not.
    -  This reply was modified 1 year, 5 months ago by [Flyter](https://wordpress.org/support/users/flyter/).
 *  [Mahfuzur Rahman](https://wordpress.org/support/users/mahfuzurwp/)
 * (@mahfuzurwp)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-endpoint-error-2/#post-18204128)
 * Hi [@flyter](https://wordpress.org/support/users/flyter/),
 * Thank you for sharing these details!
 * Since the issue persists even after disabling all plugins, including WooCommerce,
   and switching to a default theme like Twenty Twenty-Five. This suggests the problem
   might not be directly tied to WooCommerce.
 * Regarding the endpoint:
 * [https://example.com/wp-json/wp/v2/types/post?context=edit](https://example.com/wp-json/wp/v2/types/post?context=edit)
 * Please note that example.com is a placeholder domain and will return a 404 error
   because it’s not an actual site. To test your REST API, use your **actual domain
   name** instead.
 * For example [https://yourwebsite.com/wp-json/wp/v2/types/post?context=edit](https://yourwebsite.com/wp-json/wp/v2/types/post?context=edit)
 * To troubleshoot further, please try refreshing your permalinks:
 * • Go to **Settings > Permalinks** in your WordPress dashboard.
 * • Click **Save Changes** (no need to modify anything).
 * This often resolves unexpected REST API issues. Let me know how it goes!
 *  Thread Starter [Flyter](https://wordpress.org/support/users/flyter/)
 * (@flyter)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-endpoint-error-2/#post-18205653)
 * Hey [@mahfuzurwp](https://wordpress.org/support/users/mahfuzurwp/) ,
 * I ended up figuring it out, it was wordfence causing the issue. I just didnt 
   realize it because I was dumb and forgot to clear out cache so wordpress was 
   showing me the issue was still there.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Rest API Endpoint Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Flyter](https://wordpress.org/support/users/flyter/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/rest-api-endpoint-error-2/#post-18205653)
 * Status: resolved