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

Crash when a single double quote used and then another given when prompted #112

Open
LackOfMorals opened this issue Jan 25, 2025 · 0 comments

Comments

@LackOfMorals
Copy link
Contributor

When using aura-cli tenant get, a double quote was accidentally included at the end of the tenant id. A prompt was given and another double quote entered. aura-cli then crashed. :(

aura-cli tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611"
dquote> "
Unexpected error running CLI with args [tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611
], please report an issue in https://github.com/neo4j/cli

panic: unexpected error [status 403] running CLI with args [tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611
	], please report an issue in https://github.com/neo4j/cli [recovered]
	panic: unexpected error [status 403] running CLI with args [tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611
	], please report an issue in https://github.com/neo4j/cli

goroutine 1 [running]:
main.main.func1()
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/cmd/main.go:19 +0xc4
panic({0x104ea2660?, 0x1400010e050?})
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/panic.go:785 +0x124
github.com/neo4j/cli/neo4j-cli/aura/internal/api.handleResponseError(0x140000d0990, 0x140000de4b0, 0x140000d2620)
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/internal/api/response.go:67 +0xe44
github.com/neo4j/cli/neo4j-cli/aura/internal/api.MakeRequest(0x140000d2620, {0x1400009e420, 0x2e}, 0x14000035c28)
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/internal/api/api.go:77 +0x234
github.com/neo4j/cli/neo4j-cli/aura/internal/subcommands/tenant.NewCmd.NewGetCmd.func2(0x140001bc008, {0x14000095470?, 0x4?, 0x104d7ed7d?})
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/internal/subcommands/tenant/get.go:26 +0xb4
github.com/spf13/cobra.(*Command).execute(0x140001bc008, {0x14000095440, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x834
github.com/spf13/cobra.(*Command).ExecuteC(0x140001a2308)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(0x140000d2620?)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x1c
main.main()
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/cmd/main.go:28 +0x94
jgiffard@jgWorkMacBookPro ~ %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant