Unable To Setup GitHub Releases Due To "RuntimeError: NotFound"

,

I’m unable to setup github releases for my personal account, but I’m able to set it up for organizations I’m apart of. I"m able to login via the CLI but setting up releases fails. I’ve included the output from when I’m trying to set this up:

<@go-indexed>-<⎇ builds>-<*>-> travis login --pro --github-token <github-token>
Successfully logged in as bonedaddy!
<@go-indexed>-<⎇ builds>-<*>-> travis setup releases --pro --force
Username: bonedaddy
Password for bonedaddy: ****************************************    <--- this is <github-token>
Not Found
for a full error report, run travis report --pro
<@go-indexed>-<⎇ builds>-<*>-1-> travis report --pro
System
Ruby:                     Ruby 2.7.1-p83
Operating System:         Pop 20.10
RubyGems:                 RubyGems 3.2.4

CLI
Version:                  1.10.0
Plugins:                  none
Auto-Completion:          yes
Last Version Check:       2021-01-02 12:31:37 -0800

Session
API Endpoint:             https://api.travis-ci.com/
Logged In:                as "bonedaddy"
Verify SSL:               yes
Enterprise:               no

Endpoints
com:                      https://api.travis-ci.com/ (access token, current)
org:                      https://api.travis-ci.org/ (access token)

Last Exception
An error occurred running `travis setup --pro`:
    RuntimeError: Not Found
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/tools/github.rb:212:in `rescue in basic_auth'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/tools/github.rb:208:in `basic_auth'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/tools/github.rb:216:in `login'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/tools/github.rb:81:in `possible_tokens'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/tools/github.rb:50:in `each_token'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/tools/github.rb:37:in `with_token'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/setup/releases.rb:12:in `block in run'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/setup/service.rb:61:in `block in deploy'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/setup/service.rb:52:in `configure'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/setup/service.rb:60:in `deploy'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/setup/releases.rb:11:in `run'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/setup.rb:55:in `run'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli/command.rb:200:in `execute'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/lib/travis/cli.rb:64:in `run'
        from /var/lib/gems/2.7.0/gems/travis-1.10.0/bin/travis:18:in `<top (required)>'
        from /usr/local/bin/travis:23:in `load'
        from /usr/local/bin/travis:23:in `<main>'


For issues with the command line tool, please visit https://github.com/travis-ci/travis.rb/issues.
For Travis CI in general, go to https://github.com/travis-ci/travis-ci/issues or email support@travis-ci.com.

1 Like

Found the reason. Travis CLI uses OAuth Authorizations - GitHub Docs which was dropped on 22.11.2020.

The CLI needs to be changed to use the Device Flow - Authorizing OAuth Apps - GitHub Docs.