Comments (7)
Do you have pretty permalinks enabled? Did you install this as a plugin, or did you use the (not recommended) "As Part of Core" installation?
from wp-api.
I am experiencing same thing. wp-json responds, but /posts does not work. Ubuntu VPS & NGINX with pretty permalinks enabled.
from wp-api.
plugin, and yes i have pretty permalinks
from wp-api.
@rednaxus maybe try to flush your rewrite rules?
from wp-api.
I thought this was caused by nginx's pathinfo rules, but that appears to break /wp-json.php
as well for me. I'm not sure exactly what could be causing this.
from wp-api.
We've run into some issues in situations where nginx is proxy for apache, both on our internal dev servers, and at WPEngine.com. It may be related to the quantity of "Link:" headers which are sent. Here's a representative message from the nginx error log:
[error] 9250#0: *88815 upstream sent too big header while reading response header from upstream, client: xx.xx.xx.xx, server: redacted.com, request: "GET /wp-json.php/posts?filter%5Bposts_per_page%5D=-1&type=case_study HTTP/1.1", upstream: "http://10.32.2.20:80/wp-json.php/posts?filter%5Bposts_per_page%5D=-1&type=case_study", host: "-redacted-", referrer: "http://redacted.com/what-we-do/interactive-map/"
We got around this on internal environment with some nginx mods:
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
But have since removed those when we ran into the issue at wpengine, and couldn't tweak nginx. Instead, we've commented out the line of source code which sends the "Link:" headers (for expediency on the project).
from wp-api.
We changed the API URLs to /wp-json/
which should fix the main issue here.
@wkw That's incredibly strange; I'll look into it. If you can still replicate, please open a new issue. :)
from wp-api.
Related Issues (20)
- urldecode for slug HOT 1
- Can i extract in JSON FORMAT for mobile app? HOT 2
- 2u8mqg HOT 1
- Output rendering problem HOT 1
- Make a new query with a specific link HOT 1
- register_rest_field update_callback not work HOT 1
- Unable to post users HOT 1
- How to access superagent's request obj? HOT 2
- Get URL/File of an embedded video HOT 1
- Wordpress-Api HOT 1
- Custom fields and query in url HOT 1
- pass utf-8 characters to url HOT 1
- Rest Api Visual Composer HOT 1
- Want display all parent categories with first level child HOT 1
- want to display all parent category with first level child HOT 1
- unable to get url parameters HOT 1
- /wp-json/wp/v2/posts and /wp-json/wp/v2/posts doesen't work. HOT 1
- Error on UTF8 encode HOT 1
- Error on UTF8 encode HOT 1
- Custom post type filter parent_post not working in wp rest api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-api.