azbrowse: azbrowse crash on startup, then fine second time around
Started azbrowse
after a long period of not using it…
$ azbrowse
2022/01/18 08:53:05 Checking for updates
2022/01/18 08:53:08 Successfully updated to version 2.1.554
Sorry a crash occurred
Error: Request failed: Failed to acquire auth token: signal: killed (try running 'az account get-access-token' to get more details)
Please visit https://github.com/lawrencegripper/azbrowse/issues to raise a bug.
When raising please provide the details below in the issue.
Note `Navigation Tree` may contain sensitive information, please review before posting.
Stack Trace:
goroutine 103 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/lawrencegripper/azbrowse/internal/pkg/errorhandling.RecoveryWithCleanup()
/home/runner/work/azbrowse/azbrowse/internal/pkg/errorhandling/recovery.go:82 +0x157
panic({0x1dbf720, 0xc0003e0170})
/usr/local/go/src/runtime/panic.go:1038 +0x215
github.com/lawrencegripper/azbrowse/pkg/armclient.(*Client).PopulateResourceAPILookup(0xc00099e000, {0x2ada4e0, 0xc0000aa000}, 0xc00099e000)
/home/runner/work/azbrowse/azbrowse/pkg/armclient/armclient.go:318 +0x71f
main.startPopulatingList.func1()
/home/runner/work/azbrowse/azbrowse/cmd/azbrowse/main.go:190 +0xc5
created by main.startPopulatingList
/home/runner/work/azbrowse/azbrowse/cmd/azbrowse/main.go:182 +0xd6
Navigation Tree:
I then ran az account show
to double check I was signed in (I was).
I ran azbrowse
second time and it worked fine (presumably, at this point, the newer version as it told me it had skipped the check for updates).
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 19 (9 by maintainers)
@tmeckel : I re-ran my “test” (i.e. ran
azbrowse
in my terminal) and saw the crash, and that’s what I’ve just done again today (and, again, see the crash).Perhaps my PR #431 will solve the issue here.