Skip to content
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

Stack trace getting token #129

Open
MikaelSmith opened this issue Jan 13, 2021 · 4 comments
Open

Stack trace getting token #129

MikaelSmith opened this issue Jan 13, 2021 · 4 comments
Labels

Comments

@MikaelSmith
Copy link

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
Copy link
Author

Ok, had the wrong URL.

@briancain
Copy link
Contributor

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 :)

@MikaelSmith MikaelSmith reopened this Jan 14, 2021
@yachub
Copy link

yachub commented Apr 20, 2023

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

@yachub yachub closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
@yachub
Copy link

yachub commented Aug 3, 2023

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 yachub reopened this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants