scaleway/scaleway-cli

wasm: object commands crash

Opened this issue ยท 0 comments

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 object bucket list using the CLI found in the console.

Expected Behavior

It should list bucket or the command should not exist if it cannot work in the browser

Actual Behavior

goroutine 9 [running]:
runtime/debug.Stack()
	/opt/hostedtoolcache/go/1.22.6/x64/src/runtime/debug/stack.go:24 +0x6
github.com/scaleway/scaleway-cli/v2/internal/jshelpers.AsPromise.AsyncJsFunc.func2.1.1.1()
	/home/runner/work/scaleway-cli/scaleway-cli/internal/jshelpers/async.go:20 +0x4
panic({0x1653a0, 0x124b250})
	/opt/hostedtoolcache/go/1.22.6/x64/src/runtime/panic.go:770 +0x1a
github.com/aws/aws-sdk-go-v2/service/s3.(*Client).invokeOperation(0x0, {0x48e010, 0x26992c0}, {0x2c8e3c, 0xb}, {0x152e00, 0x2c0ad20}, {0x0, 0x0, 0x0}, ...)
	/home/runner/go/pkg/mod/github.com/aws/aws-sdk-go-v2/service/s3@v1.61.0/api_client.go:108 +0x8
github.com/aws/aws-sdk-go-v2/service/s3.(*Client).ListBuckets(0x0, {0x48e010, 0x26992c0}, 0x2c0ad20, {0x0, 0x0, 0x0})
	/home/runner/go/pkg/mod/github.com/aws/aws-sdk-go-v2/service/s3@v1.61.0/api_op_ListBuckets.go:29 +0x6
github.com/scaleway/scaleway-cli/v2/internal/namespaces/object/v1.bucketListCommand.func1({0x48e010, 0x26992c0}, {0xdb9a0, 0x272e1c0})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/namespaces/object/v1/custom_bucket.go:338 +0x7
github.com/scaleway/scaleway-cli/v2/internal/core.run.func1({0x48e010, 0x26992c0}, {0xdb9a0, 0x272e1c0})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/cobra_utils.go:173 +0x6
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdTypeInterceptor({0x48e010, 0x26992c0}, {0xdb9a0, 0x272e1c0}, 0x272e250)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:122 +0x4
github.com/scaleway/scaleway-cli/v2/internal/core.run.CombineCommandInterceptor.func3.1({0x48e010, 0x26992c0}, {0xdb9a0, 0x272e1c0})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:30 +0x4
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdErrorInterceptor({0x48e010, 0x26992c0}, {0xdb9a0, 0x272e1c0}, 0x24568a0)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:39 +0x4
github.com/scaleway/scaleway-cli/v2/internal/core.run.CombineCommandInterceptor.func3({0x48e010, 0x26992c0}, {0xdb9a0, 0x272e1c0}, 0x272e250)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/command_interceptor.go:29 +0x7
github.com/scaleway/scaleway-cli/v2/internal/core.run({0x48e010, 0x26992c0}, 0x2735508, 0x25d3760, {0x272e1b0, 0x1, 0x1})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/cobra_utils.go:172 +0x42
github.com/scaleway/scaleway-cli/v2/internal/core.(*cobraBuilder).hydrateCobra.cobraRun.func3(0x2735508, {0x12d1ea0, 0x0, 0x0})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/cobra_utils.go:46 +0x33
github.com/spf13/cobra.(*Command).execute(0x2735508, {0x12d1ea0, 0x0, 0x0})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0xb6
github.com/spf13/cobra.(*Command).ExecuteC(0x24de608)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x41
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/scaleway/scaleway-cli/v2/internal/core.Bootstrap(0x25cb620)
	/home/runner/work/scaleway-cli/scaleway-cli/internal/core/bootstrap.go:263 +0x137
github.com/scaleway/scaleway-cli/v2/internal/wasm.runCommand(0x2547340, 0x254c280, {0x254c300, 0x4, 0x4}, {0x483458, 0x254aea0}, {0x483458, 0x254aed0})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/wasm/run.go:38 +0x17
github.com/scaleway/scaleway-cli/v2/internal/wasm.Run(0x2547340, 0x254c280, {0x254ade0, 0x3, 0x3})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/wasm/run.go:66 +0xf
main.main.RunWithBuildInfo.func2(0x254c280, {0x254ade0, 0x3, 0x3})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/wasm/run.go:77 +0x2
reflect.Value.call({0x15b440, 0x24351e0, 0x13}, {0x2bea69, 0x4}, {0x254ad80, 0x2, 0x2})
	/opt/hostedtoolcache/go/1.22.6/x64/src/reflect/value.go:596 +0x146
reflect.Value.Call({0x15b440, 0x24351e0, 0x13}, {0x254ad80, 0x2, 0x2})
	/opt/hostedtoolcache/go/1.22.6/x64/src/reflect/value.go:380 +0xd
github.com/scaleway/scaleway-cli/v2/internal/jshelpers.AsPromise.func1({{}, 0x7ff8000100000011, 0x2526f28}, {0x254e160, 0x2, 0x2})
	/home/runner/work/scaleway-cli/scaleway-cli/internal/jshelpers/function.go:71 +0x2f
github.com/scaleway/scaleway-cli/v2/internal/jshelpers.AsPromise.AsyncJsFunc.func2.1.1()
	/home/runner/work/scaleway-cli/scaleway-cli/internal/jshelpers/async.go:25 +0x4
created by github.com/scaleway/scaleway-cli/v2/internal/jshelpers.AsPromise.AsyncJsFunc.func2.1 in goroutine 6
	/home/runner/work/scaleway-cli/scaleway-cli/internal/jshelpers/async.go:16 +0x7

More info