GithubHelp home page GithubHelp logo

v2.0.0-beta1 panic about aws-sso-cli HOT 5 CLOSED

mouchar avatar mouchar commented on September 18, 2024
v2.0.0-beta1 panic

from aws-sso-cli.

Comments (5)

mouchar avatar mouchar commented on September 18, 2024 1

Confirmed, binary built from the current v2 branch works fine and recreates the cache file if it doesn't exist. Panic doesn't happen.

from aws-sso-cli.

synfinatic avatar synfinatic commented on September 18, 2024

pretty sure this bug is fixed in the v2 branch already... care to try? You can build yourself or here's a preview build of beta2
aws-sso-2.0.0-beta2-linux-amd64.gz

from aws-sso-cli.

mouchar avatar mouchar commented on September 18, 2024

Unfortunately, the issue persists even with the build aws-sso-2.0.0-beta2-linux-amd64.gz you provided:

/tmp/aws-sso-2.0.0-beta2-linux-amd64 login -L trace -u printurl --sts-refresh
INFO    open /home/REDACTED/.aws-sso/cache.json: no such file or directory 
DEBUG   loading SSO using 10 retries and max 5sec backoff 
INFO    You are already logged in. :)                
DEBUG   Checking the current active accounts vs. our cache 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xa139cf]

goroutine 1 [running]:
github.com/synfinatic/aws-sso-cli/sso.(*SSOCache).NeedsRefresh(...)
	github.com/synfinatic/aws-sso-cli/sso/cache.go:132
main.(*LoginCmd).Run(0xc00023ac80, 0xc00023f980)
	github.com/synfinatic/aws-sso-cli/cmd/aws-sso/login_cmd.go:45 +0x18f
reflect.Value.call({0xa92700?, 0xc00023ac80?, 0xb58860?}, {0xb59fac, 0x4}, {0xc0004491b8, 0x1, 0x0?})
	reflect/value.go:596 +0xce7
reflect.Value.Call({0xa92700?, 0xc00023ac80?, 0xaadce0?}, {0xc0004491b8?, 0xb58860?, 0x0?})
	reflect/value.go:380 +0xb9
github.com/alecthomas/kong.callFunction({0xa92700?, 0xc00023ac80?, 0x0?}, 0xb59a6b?)
	github.com/alecthomas/[email protected]/callbacks.go:98 +0x40b
github.com/alecthomas/kong.(*Context).RunNode(0xc00023f600, 0xc00024e690, {0xc00037fe08, 0x1, 0x0?})
	github.com/alecthomas/[email protected]/context.go:765 +0x810
github.com/alecthomas/kong.(*Context).Run(0xc00032c5b0?, {0xc00037fe08?, 0x0?, 0x0?})
	github.com/alecthomas/[email protected]/context.go:790 +0x132
main.main()
	github.com/synfinatic/aws-sso-cli/cmd/aws-sso/main.go:219 +0xbae

But stack trace is slightly different.

The easiest reproducer is to delete cache.json and run aws-sso login

from aws-sso-cli.

synfinatic avatar synfinatic commented on September 18, 2024

thanks, that's helpful.

from aws-sso-cli.

synfinatic avatar synfinatic commented on September 18, 2024

Should work now. Uploading aws-sso-2.0.0-beta2-linux-amd64.gz…

from aws-sso-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.