-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"travis login --pro" -> no implicit conversion of nil into String #586
Comments
Similar issue with some workarounds that have worked for other people here: #190. Seems like the main fix is using a newer version of ruby. |
It appears to me that sometimes the Travis commands are using an old version of ruby. I have 2.5.0p0 (from |
Thank you for hints.
…On Sun, Mar 11, 2018 at 4:39 AM, Diane DeMers Chen ***@***.*** > wrote:
It appears to me that sometimes the Travis commands are using an old
version of ruby. I have 2.5.0p0 (from ruby --version), but when I used brew
install travis, the commands were using Ruby 2.0.0-p648 (that's what the
travis report said, just like above). My solution was to brew uninstall
travis and then gem install travis -v 1.8.8 --no-rdoc --no-ri per
instructions here: https://github.com/travis-ci/travis.rb#installation.
But if you look at #190
<#190>, you will see some
people *fixed* the problem with brew install travis. And others were
having firewall issues. Go figure.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#586 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEyqnv-ZJR071GJcCbTL6bL3KGE2Q1XGks5tdJxqgaJpZM4SaKRA>
.
--
/Mateusz
|
Same issue when And
|
Just hit this as well and wasted a half an hour on this. |
Possible workaround is to copy your API token from the web UI, and paste it to your |
same issue here |
Once you've upgraded Ruby (e.g. to 2.5.1p57), then run "sudo gem install travis -v 1.8.8 --no-rdoc --no-ri". If you're behind a proxy you will need to add the --http-proxy url:port argument to the gem install command. |
Had the same problem. Fixed It for me after I installed the development version of the travis CLI.
|
today same issue on login, not working --pro, normal password or github-token. |
same issue here. what's the fix? |
Upgrade Ruby
…On Thu, Jun 14, 2018 at 10:19 PM, Alan Ma ***@***.***> wrote:
same issue here. what's the fix?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#586 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEyqnhUALZ9gVPFPWt6N2qJHa-PV5ytdks5t8sU8gaJpZM4SaKRA>
.
--
/Mateusz
|
thanks @smbrd . Here are my steps to fix the issue:
|
Thanks @alan-ma-umg . That works perfectly |
I needed to link ruby and prepend to $PATH profile
|
$ travis login --pro --auto
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.
Username: smbrd
Password for smbrd: **************
no implicit conversion of nil into String
for a full error report, run travis report --pro
[~/code/branded]
$ travis report --pro
System
Ruby: Ruby 2.0.0-p648
Operating System: Mac OS X 10.12.6
RubyGems: RubyGems 2.7.6
CLI
Version: 1.8.8
Plugins: none
Auto-Completion: yes
Last Version Check: 2018-03-02 16:49:48 +0100
Session
API Endpoint: https://api.travis-ci.com/
Logged In: as "smbrd"
Verify SSL: yes
Enterprise: no
Endpoints
pro: https://api.travis-ci.com/ (access token, current)
org: https://api.travis-ci.org/ (access token)
Last Exception
'An error occurred running
travis login --pro
:TypeError: no implicit conversion of nil into String
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in
initialize' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in
new'from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in
parse' from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:262:in
gh_error'from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:211:in
rescue in basic_auth' from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:208:in
basic_auth'from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:215:in
login' from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:80:in
possible_tokens'from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:49:in
each_token' from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/tools/github.rb:36:in
with_token'from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/cli/login.rb:31:in
login' from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/cli/login.rb:40:in
run'from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/cli/command.rb:198:in
execute' from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/lib/travis/cli.rb:64:in
run'from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.8/bin/travis:18:in
<top (required)>' from /usr/local/bin/travis:23:in
load'from /usr/local/bin/travis:23:in `
The text was updated successfully, but these errors were encountered: