You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At some point during May or June, requests to get my commit histories for individual repos started returning empty response bodies. I've only just got round to debugging it now, but it appears that GitHub no longer likes the default value octokat.js sends for the If-Modified-Since header.
The problem can easily be reproduced using curl. This request correctly returns my commit history:
Whereas this request, identical except for the additional If-Modified-Since header, returns an empty body (but still succeeds):
curl -v -X GET -H "Accept: application/vnd.github.v3+json" -H "User-Agent: octokat.js" -H "If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT" "https://api.github.com/repos/mozilla/fxa-auth-server/commits?author=philbooth"
I appreciate you haven't made any changes that caused this, but I was wondering if it would be possible to default to no If-Modified-Since header instead of sending it the epoch?
I'm not sure how to report issues with the API to GitHub but if I find out I will also raise this with them.
The text was updated successfully, but these errors were encountered:
Thanks for reporting! I think #104 should fix this issue; could you try checking out the master branch and building locally (since the PR was merged) and see if that fixes your issue?
At some point during May or June, requests to get my commit histories for individual repos started returning empty response bodies. I've only just got round to debugging it now, but it appears that GitHub no longer likes the default value octokat.js sends for the
If-Modified-Since
header.The problem can easily be reproduced using curl. This request correctly returns my commit history:
Whereas this request, identical except for the additional
If-Modified-Since
header, returns an empty body (but still succeeds):I appreciate you haven't made any changes that caused this, but I was wondering if it would be possible to default to no
If-Modified-Since
header instead of sending it the epoch?I'm not sure how to report issues with the API to GitHub but if I find out I will also raise this with them.
The text was updated successfully, but these errors were encountered: