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

Bug: Endpoint /episodes doesn't return total for page 1 #6

Open
cristianoliveira opened this issue Aug 10, 2017 · 5 comments
Open

Bug: Endpoint /episodes doesn't return total for page 1 #6

cristianoliveira opened this issue Aug 10, 2017 · 5 comments

Comments

@cristianoliveira
Copy link
Member

I am having some strange behavior from the API. When I pass the page=1 it doesn't return the total.

Request URL:https://api.feedcast.io/episodes?page=1&per_page=30
Request Method:GET
Status Code:200  (from disk cache)
Remote Address:104.24.110.210:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
access-control-allow-origin:*
access-control-expose-headers:total
cache-control:max-age=300, public
cf-ray:38c64c73e9f226b4-FRA
content-encoding:gzip
content-type:application/json
date:Thu, 10 Aug 2017 22:12:47 GMT
etag:W/"2b8bed4dd8afddd7ccb69ec17656afd3"
server:cloudflare-nginx
status:200
via:1.1 vegur
x-request-id:b8e255ff-28ca-40da-8a71-0869ba311937
x-runtime:0.022315

And passing a page to it:

Request URL:https://api.feedcast.io/episodes?page=2&per_page=30
Request Method:GET
Status Code:200  (from disk cache)
Remote Address:104.24.110.210:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
access-control-allow-origin:*
access-control-expose-headers:total
cache-control:max-age=300, public
cf-ray:38c64ea5886026b4-FRA
content-encoding:gzip
content-type:application/json
date:Thu, 10 Aug 2017 22:14:17 GMT
etag:W/"55a845059d5108911ccb744467511178"
link:<http://api.feedcast.io/episodes?page=1&per_page=30>; rel="first", <http://api.feedcast.io/episodes?page=1&per_page=30>; rel="prev", <http://api.feedcast.io/episodes?page=519&per_page=30>; rel="last", <http://api.feedcast.io/episodes?page=3&per_page=30>; rel="next"
per-page:30
server:cloudflare-nginx
status:304
total:15557
via:1.1 vegur
x-request-id:f8b7e227-9e17-4053-938f-4426a4e393f9
x-runtime:0.256476
@marceloboeira
Copy link
Contributor

marceloboeira commented Aug 10, 2017

@cristianoliveira is that happening only for this endpoint or for all the endpoints with pagination?

@cristianoliveira
Copy link
Member Author

Apparently is just this endpoint the channels/ is working properly

@marceloboeira
Copy link
Contributor

that's crazy, I will check tomorrow.

@cristianoliveira
Copy link
Member Author

My guess would be something related to cache, cause it happens intermittently. I can show you tomorrow what is the bug.

@marvin52
Copy link
Member

i'm having the same problem :/

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

No branches or pull requests

3 participants