swdyh / gisty

yet another command line client for gist
185 stars 22 forks source link

gist returns 401 #4

Closed Takazudo closed 13 years ago

Takazudo commented 13 years ago

Thank you for the nice application. I love using gisty. After gist was renewaled a little? maybe since 1 or 2 month ago, gisty did not work. It says 404 Unauthorized.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:277:in open_http': 401 Unauthorized (OpenURI::HTTPError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:616:inbuffer_open' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:164:in open_loop' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:incatch' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in open_loop' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:132:inopen_uri' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:518:in open' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:30:inopen' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/gisty.rb:221:in read_by_url' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/gisty.rb:66:inmap_pages' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/gisty.rb:64:in loop' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/gisty.rb:64:inmap_pages' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/gisty.rb:75:in remote_ids' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/gisty.rb:106:insync' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/lib/commands/sync.rb:2 from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/bin/gisty:14:in cmd' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/bin/gisty:51:incall' from /Library/Ruby/Gems/1.8/gems/gisty-0.0.21/bin/gisty:51 from /usr/bin/gisty:19:in `load' from /usr/bin/gisty:19

I'm happy if you could fix this.

swdyh commented 13 years ago

The error did not occur in my environment. Please confirm user id and token set with gitconfig.

Takazudo commented 13 years ago

Oh, I don't know why but my github's token was invalid. It worked with my new token now. Thanks for your support and I'm sorry to take your time!