Open brotatos opened 11 years ago
I started to get something similar as well today.
Here is the error message.
MultiJson::LoadError
795: unexpected token at '<html><body><h1>502 Bad Gateway</h1>
The server returned an invalid or incomplete response.
</body></html>
I get this message when I do this.
github = Github.new(:oauth_token => '89abc...........')
commits = github.repos.commits.all('big-corp-name', 'some-repo-name')
My Ruby version is ruby 2.0.0p247
and rails is Rails 3.2.13
I also noticed that this problem occurs intermittently. It works one minute and stops working the next and suddenly work again.
I can't get any of the repos for one of my orgs. It's only showing my public repos. I can't access scopes either.
I noticed that this fails when using user and oauth_token on the Github.new call. If you try something like:
github = Github.new do |config|
config.basic_auth = "#{user}:#{oauth_token}"
end
You will get all repositories as expected.
We have two organizations. Some repos were created in org "A" and subsequently forked to org "B". Some repos were created in org "B" and subsequently forked to org "A".
When I list all repos in org "A" I don't find the forked copies of repos that originated with org "B".
After I run this script:
I get this error: