harness account - fails to fetch account details
Open
Nobody has claimed this yet.
bug
- Dominant language
- Go
- Stars
- 25
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Executing the command harness account fails with the below error:
panic: runtime error: index out of range [-1]
goroutine 1 [running]:
main.GetUrlWithQueryParams({0x13c1460?, 0xc00013b5b0?}, {0xc000228870, 0x25}, {0x1423610, 0x9}, 0xc000225520?)
/github/workspace/utils.go:55 +0x28a
main.getAccountDetails(0xc000230a08?)
/github/workspace/account.go:13 +0x170
main.cliWrapper(0x13b13c0?, 0xc00021c801?)
/github/workspace/main.go:382 +0x82
main.main.func23(0xc0002f62c0?)
/github/workspace/main.go:361 +0x25
github.com/urfave/cli/v2.(*Command).Run(0xc0002f62c0, 0xc00021c800, {0xc00020b510, 0x1, 0x1})
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.5/command.go:274 +0xa42
github.com/urfave/cli/v2.(*Command).Run(0xc0002f6580, 0xc00021c500, {0xc000014040, 0x2, 0x2})
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.5/command.go:267 +0xc97
github.com/urfave/cli/v2.(*App).RunContext(0xc0002f41e0, {0x14cf7a0?, 0xc00001e0b8}, {0xc000014040, 0x2, 0x2})
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.5/app.go:332 +0x616
github.com/urfave/cli/v2.(*App).Run(...)
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.5/app.go:309
main.main()
/github/workspace/main.go:369 +0x21e5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the harness account command, then start at utils.go:55 and follow the call from account.go:13 shown in the stack trace. Verify the command no longer panics and can fetch the account details successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100