Skip to content

harness account - fails to fetch account details #42

@Ompragash

Description

@Ompragash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions