-
Notifications
You must be signed in to change notification settings - Fork 41
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
REST API not working with wp-now #367
Comments
Hey @ivanjeremic Have you enabled pretty permalinks on your site?
|
Enabling permalinks was the first thing I did, but I still haven't had any success. I can query the I tested on multiple systems, Windows 10, 11 & WSL2 everywhere the same issue. I think it could be related to Link |
I believe this is the same issue as And there is a fix to the underlying problem proposed here: If that fix is merged, then wp-now would need to be upgraded to use the latest Playground packages in order to receive the fix. |
Yes, this is it, was not able to find this issue before. Hope that a fix will be here soon because using rest API is very common. I also read in the issue that wp-now is not the future but instead the |
I could be wrong but am not sure there are any dedicated docs yet. It is built similarly to wp-now though there are some differences. And it also does not require Docker. You can play with it with Node.js 20.x+ (maybe older versions work, but I had some trouble with Node.js 18.x):
To see the command line options:
AFAIK, the biggest differences between wp-now and the official Playground CLI package is that the official package does not yet include logic to guess what kinds of directories you are giving it (like a plugin dir or wp-content). I believe we'd like to support those features in Playground CLI as well, but for now, it is necessary to explicitly mount directories where you want them. The FS structure within Playground includes a
where Does that help? |
@brandonpayton I tested WSL 2 issues:I have some weird bugs with the WIN 11 issues:Here I was not able to get it working in any way
|
Any requests to
http://localhost:8881/wp-json/
gives the error:How would we enable a rest API that allows requests?
The text was updated successfully, but these errors were encountered: