scaleway-cli
scaleway-cli copied to clipboard
Issue when running get api key
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Command attempted
$ scw iam api-key get <my-api-key>
(let me know on Slack if you need the key in question)
Expected Behavior
details about API key
Actual Behavior
output:
---------------------------------------------------------------------------------------
An error occurred, we are sorry, please consider opening a ticket on github using: 'scw feedback bug'
Give us as many details as possible so we can reproduce the error and fix it.
---------------------------------------------------------------------------------------
runtime error: invalid memory address or nil pointer dereference
stacktrace from panic:
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
main.cleanup(0xc00058e280)
github.com/scaleway/scaleway-cli/v2/cmd/scw/main.go:44 +0xca
panic({0x55d6080?, 0x685bad0?})
runtime/panic.go:792 +0x132
github.com/scaleway/scaleway-cli/v2/internal/namespaces/iam/v1alpha1.getApiKey({0x591e000, 0xc000644450}, 0xc0000532c8, {0xc00074706b?, 0xc000082808?}, {0x40?})
github.com/scaleway/scaleway-cli/v2/internal/namespaces/iam/v1alpha1/custom_iam.go:49 +0xf3
github.com/scaleway/scaleway-cli/v2/internal/namespaces/iam/v1alpha1.init.func1({0x591e000, 0xc000644450}, {0x5494c00?, 0xc00076fa10})
github.com/scaleway/scaleway-cli/v2/internal/namespaces/iam/v1alpha1/custom_iam.go:153 +0xbd
github.com/scaleway/scaleway-cli/v2/core.run.func1({0x591e000?, 0xc000644450?}, {0x5494c00?, 0xc00076fa10?})
github.com/scaleway/scaleway-cli/v2/core/cobra_utils.go:206 +0x32
github.com/scaleway/scaleway-cli/v2/core.sdkStdTypeInterceptor({0x591e000, 0xc000644450}, {0x5494c00?, 0xc00076fa10?}, 0x0?)
github.com/scaleway/scaleway-cli/v2/core/command_interceptor.go:136 +0x2f
github.com/scaleway/scaleway-cli/v2/core.run.CombineCommandInterceptor.func3.1({0x591e000?, 0xc000644450?}, {0x1c7ffe6acc0019bf?, 0xc0000532f8?})
github.com/scaleway/scaleway-cli/v2/core/command_interceptor.go:34 +0x2e
github.com/scaleway/scaleway-cli/v2/core.sdkStdErrorInterceptor({0x591e000?, 0xc000644450?}, {0x5494c00?, 0xc00076fa10?}, 0x10?)
github.com/scaleway/scaleway-cli/v2/core/command_interceptor.go:49 +0x46
github.com/scaleway/scaleway-cli/v2/core.run.CombineCommandInterceptor.func3({0x591e000, 0xc000644450}, {0x5494c00, 0xc00076fa10}, 0xc0008105d0)
github.com/scaleway/scaleway-cli/v2/core/command_interceptor.go:30 +0xb9
github.com/scaleway/scaleway-cli/v2/core.run({0x591e000, 0xc000644450}, 0xc00067e308, 0xc0003ea2c0, {0xc00062a940, 0x2, 0x2})
github.com/scaleway/scaleway-cli/v2/core/cobra_utils.go:202 +0x3cb
github.com/scaleway/scaleway-cli/v2/core.(*cobraBuilder).hydrateCobra.cobraRun.func3(0xc00067e308, {0xc000637e90, 0x1, 0x1})
github.com/scaleway/scaleway-cli/v2/core/cobra_utils.go:120 +0x865
github.com/spf13/cobra.(*Command).execute(0xc00067e308, {0xc000637e50, 0x1, 0x1})
github.com/spf13/[email protected]/command.go:1015 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0xc00003a308)
github.com/spf13/[email protected]/command.go:1148 +0x46f
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1071
github.com/scaleway/scaleway-cli/v2/core.Bootstrap(0xc000053e60)
github.com/scaleway/scaleway-cli/v2/core/bootstrap.go:279 +0x127c
main.mainNoExit()
github.com/scaleway/scaleway-cli/v2/cmd/scw/main.go:86 +0x365
main.main()
github.com/scaleway/scaleway-cli/v2/cmd/scw/main.go:67 +0x13
runtime error: invalid memory address or nil pointer dereference%
More info
$ scw version Version 2.40.0 BuildDate unknown GoVersion go1.24.4 GitBranch unknown GitCommit unknown GoArch amd64 GoOS darwin UserAgentPrefix scaleway-cli