Woo API returns HTLM for product endpoints

[ad_1]

Hi all,

The Woo Rest API endpoint for a single product broke and started returning the HTML of the shop page a few days/a week back.. (Still a 200 response) So every time I hit the wp-json/wc/v3/products/XXXX endpoint I just get the HTML of the shop page as response.

Is there any known changes/issues with the Rest API? I’m not able to find any.

This is not true for all endpoints. The wc/v3/products endpoint is still working as expected.

What I’ve tried:
– Updating all plugins and themes.
– Disabling plugins.
– Switching to default WP theme.
– Regenerated API keys.
– All tests done on both prod and staging environments.

Not sure where to go from here.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer