Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request failed with status code 404 #1

Open
robbisy opened this issue Apr 5, 2018 · 1 comment
Open

Request failed with status code 404 #1

robbisy opened this issue Apr 5, 2018 · 1 comment

Comments

@robbisy
Copy link

robbisy commented Apr 5, 2018

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 ?

@robbisy robbisy changed the title two errors Request failed with status code 404 Apr 5, 2018
@timotheemoulin
Copy link

timotheemoulin commented Apr 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants