I'm facing this error and I don't really understand why. Other ask don't contains usefully information so I try to ask again providing more details Content range missing header Response detail
Asked
Active
Viewed 2,018 times
1
-
make the effort to both both your code and the error in the question, it's barely readeable if at all, – sandwood Apr 17 '18 at 17:15
1 Answers
0
As specified in the documentation:
The simple REST client expects the API to include a
Content-Range
header in the response toGET_LIST
calls. The value must be the total number of resources in the collection. This allows admin-on-rest to know how many pages of resources there are in total, and build the pagination controls.
Your header does not have the requested format:
Content-Range: posts 0-24/319

Gildas Garcia
- 6,966
- 3
- 15
- 29
-
if you look at the first picture you'll notice that the header Content-Range is set in the response – user9659880 Apr 18 '18 at 09:08
-
And I can notice that it does not follow the documentation too. For a `post` resource, it should look like `Content-Range: posts 0-24/319` – Gildas Garcia Apr 19 '18 at 08:26