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

wasm: object commands crash #4099

Open
Codelax opened this issue Sep 4, 2024 · 0 comments
Open

wasm: object commands crash #4099

Codelax opened this issue Sep 4, 2024 · 0 comments
Labels
bug object Object storage issues, bugs and feature requests priority:highest Bugs filled by customers, security issues wasm WebAssembly

Comments

@Codelax
Copy link
Member

Codelax commented Sep 4, 2024

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/[email protected]/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/[email protected]/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/[email protected]/command.go:985 +0xb6
github.com/spf13/cobra.(*Command).ExecuteC(0x24de608)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x41
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/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

@Codelax Codelax added bug object Object storage issues, bugs and feature requests priority:highest Bugs filled by customers, security issues wasm WebAssembly labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug object Object storage issues, bugs and feature requests priority:highest Bugs filled by customers, security issues wasm WebAssembly
Projects
None yet
Development

No branches or pull requests

1 participant