-
Notifications
You must be signed in to change notification settings - Fork 188
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
json parse error #39
Comments
In my case, I hadn't told git about my github credentials. From github-gem's readme:
After setting that up, |
I still see this issue, even after adding those configs. Happens in ruby 1.8.7 and 1.9.2 with github gem versino 0.6.2. |
I also get this error. |
I had this very frustrating issue for a long time (is spewing a stack trace really the best error message available?) and finally fixed it by removing GITHUB_USER and GITHUB_TOKEN from my gitconfig and hardcoding my actual credentials. |
I'm having the same problem. None of the proposed solutions work for me. |
Same error. |
Issue here too with ruby 1.9.2p290, json 1.6.5, json-pure 1.5.4 and github 0.6.2 |
The github gem will drop an invalid empty "network cache" file at .git/network-cache if the credentials are busted. Remove it, fix your credentials, then try. |
Same error for me, tried with multiple repositories, both personal and part of an organisation. I tried removing the |
This issue isn't relevant currently because the |
gh network list
/Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:146:in
initialize': A JSON text must at least contain two octets! (JSON::ParserError) from /Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:146:in
new'from /Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:146:in
parse' from /Library/Ruby/Gems/1.8/gems/github-0.5.0/lib/commands/helpers.rb:400:in
get_cache'The text was updated successfully, but these errors were encountered: