vmfloaty icon indicating copy to clipboard operation
vmfloaty copied to clipboard

Stack trace getting token

Open MikaelSmith opened this issue 4 years ago • 4 comments

Running floaty get token --trace with floaty 1.1.1, I get

No token found. Retrieving a token...
Enter your https://abs-prod.k8s.infracore.puppet.net/api/v1 service password:
**************
Traceback (most recent call last):
	15: from /Users/michaelsmith/.rbenv/versions/2.6.5/bin/floaty:23:in `<main>'
	14: from /Users/michaelsmith/.rbenv/versions/2.6.5/bin/floaty:23:in `load'
	13: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/bin/floaty:8:in `<top (required)>'
	12: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/lib/vmfloaty.rb:569:in `run'
	11: from /Users/michaelsmith/.gem/ruby/2.6.0/gems/commander-4.4.7/lib/commander/delegates.rb:15:in `run!'
	10: from /Users/michaelsmith/.gem/ruby/2.6.0/gems/commander-4.4.7/lib/commander/runner.rb:68:in `run!'
	 9: from /Users/michaelsmith/.gem/ruby/2.6.0/gems/commander-4.4.7/lib/commander/runner.rb:446:in `run_active_command'
	 8: from /Users/michaelsmith/.gem/ruby/2.6.0/gems/commander-4.4.7/lib/commander/command.rb:153:in `run'
	 7: from /Users/michaelsmith/.gem/ruby/2.6.0/gems/commander-4.4.7/lib/commander/command.rb:182:in `call'
	 6: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/lib/vmfloaty.rb:68:in `block (2 levels) in run'
	 5: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/lib/vmfloaty/service.rb:82:in `retrieve'
	 4: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/lib/vmfloaty/service.rb:50:in `token'
	 3: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/lib/vmfloaty/service.rb:58:in `get_new_token'
	 2: from /Users/michaelsmith/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/vmfloaty-1.1.1/lib/vmfloaty/auth.rb:14:in `get_token'
	 1: from /Users/michaelsmith/.gem/ruby/2.6.0/gems/json-2.3.0/lib/json/common.rb:156:in `parse'
/Users/michaelsmith/.gem/ruby/2.6.0/gems/json-2.3.0/lib/json/common.rb:156:in `parse': 783: unexpected token at 'POST /api/v1/token' (JSON::ParserError)

MikaelSmith avatar Jan 13 '21 18:01 MikaelSmith

Ok, had the wrong URL.

MikaelSmith avatar Jan 13 '21 18:01 MikaelSmith

I'd say it's probably still worth fixing up the stack trace so it doesn't fail to parse json! Feel free to reopen...not sure who is maintaining this these days but it would be an easy contribution :)

briancain avatar Jan 14 '21 00:01 briancain

We're migrating issue management to Jira, so tracking this has been moved to https://puppet.atlassian.net/browse/POOLER-224

yachub avatar Apr 20 '23 15:04 yachub

We're migrating issue management to Jira, so tracking this has been moved to https://puppet.atlassian.net/browse/POOLER-224

Apologies for the noise, we went full circle here and decided to move from Jira Cloud to GitHub Projects instead.

yachub avatar Aug 03 '23 12:08 yachub