gist icon indicating copy to clipboard operation
gist copied to clipboard

Can't establish creds

Open tbbooher opened this issue 3 years ago • 2 comments

From a fresh install of gist v5.0.0 on Ubuntu 20.04.2 LTS

gist-paste --login
Obtaining OAuth2 access_token from github.
GitHub username: my_username
GitHub password:
Traceback (most recent call last):
        10: from /usr/bin/gist-paste:140:in `<main>'
         9: from /usr/lib/ruby/2.7.0/optparse.rb:1691:in `parse!'
         8: from /usr/lib/ruby/2.7.0/optparse.rb:1666:in `permute!'
         7: from /usr/lib/ruby/2.7.0/optparse.rb:1569:in `order!'
         6: from /usr/lib/ruby/2.7.0/optparse.rb:1575:in `parse_in_order'
         5: from /usr/lib/ruby/2.7.0/optparse.rb:1575:in `catch'
         4: from /usr/lib/ruby/2.7.0/optparse.rb:1589:in `block in parse_in_order'
         3: from /usr/bin/gist-paste:57:in `block (2 levels) in <main>'
         2: from /usr/lib/ruby/vendor_ruby/gist.rb:350:in `login!'
         1: from /usr/lib/ruby/vendor_ruby/gist.rb:350:in `loop'
/usr/lib/ruby/vendor_ruby/gist.rb:390:in `block in login!': Got Net::HTTPNotFound from gist: {"message":"Not Found","documentation_url":"https://docs.github.com/rest"} (RuntimeError)

tbbooher avatar May 31 '21 10:05 tbbooher

Hey Tim, you’ll need to upgrade to gist v6.0.0 or greater which uses Github’s new authentication scheme

Sent via Superhuman iOS @.***>

On Mon, May 31 2021 at 11:15, Tim Booher @.***> wrote:

From a fresh install.

gist-paste --login Obtaining OAuth2 access_token from github. GitHub username: my_username GitHub password: Traceback (most recent call last): 10: from /usr/bin/gist-paste:140:in <main>' 9: from /usr/lib/ruby/2.7.0/optparse.rb:1691:in parse!' 8: from /usr/lib/ruby/2.7.0/optparse.rb:1666:in permute!' 7: from /usr/lib/ruby/2.7.0/optparse.rb:1569:in order!' 6: from /usr/lib/ruby/2.7.0/optparse.rb:1575:in parse_in_order' 5: from /usr/lib/ruby/2.7.0/optparse.rb:1575:in catch' 4: from /usr/lib/ruby/2.7.0/optparse.rb:1589:in block in parse_in_order' 3: from /usr/bin/gist-paste:57:in block (2 levels) in

' 2: from /usr/lib/ruby/vendor_ruby/gist.rb:350:in login!' 1: from /usr/lib/ruby/vendor_ruby/gist.rb:350:in loop' /usr/lib/ruby/vendor_ruby/gist.rb:390:in `block in login!': Got Net::HTTPNotFound from gist: {"message":"Not Found","documentation_url":"https://docs.github.com/rest"} (RuntimeError)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/defunkt/gist/issues/332, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXAQAWULXICISBOYSLNIDTQNOTTANCNFSM452TGZPQ .

ConradIrwin avatar Jun 02 '21 15:06 ConradIrwin

What if you have enterprise github? Changing the url via export GITHUB_URL= forces the new way.

jacobvanorder avatar Feb 22 '23 23:02 jacobvanorder