woocommerce api returning html, not json

I have a test site which calls are returning in JSON no problems,

But on my live site (different from test site), it is returning html.

I have also put in the header “Content-Type: application/json” but it is still returning HTML.

I have:

W3 Total Cache
and woo commerce Version 2.6.14 installed.

I know it is an old version and I am upgrading but there is alot to sort out before upgrading, but this shouldn’t cause this issue should it?

I am calling on postman.

Why is HTML being returned on API Calls and how do I fix it?

Read more here: woocommerce api returning html, not json

Leave a Reply

Your email address will not be published. Required fields are marked *