FacetWP REST API not returning payload

I am writing a small React app to display some FacetWP data. I am not a WordPress developer so I might be missing something obvious. Anyway, I followed the instructions here and ended up with the following client side code:

var data = {
‘facets’: {
‘tutorial_by_zone’: []
‘query_args’: {
‘post_type’: ‘tutorial’,
‘posts_per_page’: 4,
‘paged’: 1
{ data: JSON.stringify(data) })
.then(res => console.log(res));

I have also set the Content-Type to application/x-www-form-urlencoded as this is closer to that jQuery’s $.post() would do. I found a jQuery sample here.

My API is not authenticated and I get a 200 response from my POST, but there is no actual response from FaceWP.

Read more here:: FacetWP REST API not returning payload

Leave a Reply

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