Unable to login with Github # travis login --com

I am trying to do a login with Travis and guthub account.
first I run:

docker run -it -v $(pwd):/app ruby:2.4 sh

so after status created the image:
Status: Downloaded newer image for ruby:2.4

I installed the travis gem:
gem install travis

then tried to login:
travis login --com

after try to login with my Github account it complains an error:

Not Found
for a full error report, run travis report --pro
# travis login --com
We need your GitHub login to identify you.
This information will not be sent to Travis CI, only to api.github.com.
The password will not be displayed.

Try running with --github-token or --auto if you don't want to enter your password anyway.

then I run the:

#  travis report --pro
Ruby:                     Ruby 2.4.10-p364
Operating System:         Linux
RubyGems:                 RubyGems 3.0.3

Version:                  1.10.0
Plugins:                  none
Auto-Completion:          yes
Last Version Check:       2021-07-21 13:00:44 +0000

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

com:                      https://api.travis-ci.com/ (current)

Last Exception
An error occurred running `travis login --pro`:
    RuntimeError: Not Found
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/tools/github.rb:212:in `rescue in basic_auth'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/tools/github.rb:208:in `basic_auth'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/tools/github.rb:216:in `login'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/tools/github.rb:81:in `possible_tokens'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/tools/github.rb:50:in `each_token'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/tools/github.rb:37:in `with_token'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/cli/login.rb:31:in `login'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/cli/login.rb:50:in `run'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/cli/command.rb:200:in `execute'
        from /usr/local/bundle/gems/travis-1.10.0/lib/travis/cli.rb:64:in `run'
        from /usr/local/bundle/gems/travis-1.10.0/bin/travis:18:in `<top (required)>'
        from /usr/local/bundle/bin/travis:23:in `load'
        from /usr/local/bundle/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.

I need help guys!