bigbite / gutenberg-postlist-demo

The demo plugin from our post
48 stars 17 forks source link

Request failed with status code 404 #1

Open robbisy opened 6 years ago

robbisy commented 6 years ago

Hi Jerome I use npm install , npm run build and then I install your plugin but I get an error message Error: Request failed with status code 404 and TypeError: this.state.types[s.type] is undefined when I type my search query

ju

Am I missing something ?

timotheemoulin commented 5 years ago

Hello @robbisy, I know this is old, but as no answer has been given...

There might be an issue on a fresh WordPress install if the pretty permalinks are not enable. The default API URL is /?rest_route=/wp/v2 and this should be used to ensure compatibility for websites that are not using pretty permalinks (though I don't think anyone doesn't use them).

Setting a pretty permalink structure should solve the error.