Search code examples
travis-citravis-ci-cli

Error: resource not found ({} ) when running travis cli command


I am getting this message whenever I try to run a travis command.
This is the minimal reproducible example:

$ travis version
1.11.1
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
$ travis status
resource not found ({}
)

I am on macOS Ventura / Apple Silicon

I have tried different rub versions, reinstalled the Travis CLI, no success.


Solution

  • After reaching out to travis support I got the suggestion to first log in using the travis cli like this:

    travis login --pro --github-token GITHUB_PERSONAL_ACCESS_TOKEN
    

    Where GITHUB_PERSONAL_ACCESS_TOKEN can be found on GitHub under:
    Settings > Developer Settings > Personal access tokens

    I could then perform my travis cli tasks without further errors.

    While this solved my problem, I still consider this behaviour of the travis CLI a bug.