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
{{ message }}
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
After investigation it turns out that GitHub returns a redirect the API call asking for the file content, and when Go drops the ACCEPT header we end up obtaining json instead.
The text was updated successfully, but these errors were encountered:
In case my opinion here is helpful, I think both are fine at resolving this particular issue.
An important factor is a comment you left on CL 28788:
if you think this is good I'll send another CL replacing the other calls to GitHub API by calls to go-github
For me, that's very important. I think there are 3 possible outcomes:
We fix this bug with pure HTTP and stay there (CL 28752 and stop there).
We fix this bug by using go-github and stay there (CL 28788 and stop there).
We fix this bug by using go-github and follow up by replacing all github access to go through go-github package (CL 28788 plus future changes).
What I'd rather avoid is the middle option that decreases consistency and doesn't fully make use of a new dependency. If we're going to do that, it seems better to just go with CL 28752 and stop there.
Option 3 is most attractive IMO, because I expect it'll lead to code being simpler (at least conceptually). go-github is a great library and it's well maintained. The only reason gosrc didn't use it is because it predates it.
If possible, avoid option 2.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Seen on stackdriver monitoring for https://go-talks.appspot.com this talk fails with
Internal Server Error
.After investigation it turns out that GitHub returns a redirect the API call asking for the file content, and when Go drops the
ACCEPT
header we end up obtainingjson
instead.The text was updated successfully, but these errors were encountered: