Skip to content

运行任何命令都报错:panic: runtime error: index out of range [1] with length 0 #103

@theLSA

Description

@theLSA

前两天还正常,今天就出现如下报错,是否天翼云的登录接口变了?
//比如./cloudpan189-go help或者./cloudpan189-go sign


panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]:
github.com/tickstep/cloudpan189-api/cloudpan.getLoginParams(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/tickstep/Applications/go/pkg/mod/github.com/tickstep/[email protected]/cloudpan/login.go:151 +0x4b2
github.com/tickstep/cloudpan189-api/cloudpan.Login(0xc00028ebf8, 0x6, 0xc00028ec60, 0xa, 0xc00034a5a0, 0x0)
	/Users/tickstep/Applications/go/pkg/mod/github.com/tickstep/[email protected]/cloudpan/login.go:68 +0xc5
github.com/tickstep/cloudpan189-go/cmder.DoLoginHelper(0xc00028ebf8, 0x6, 0xc00028ec60, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/tickstep/Documents/Workspace/go/projects/cloudpan189-go/cmder/cmder_helper.go:81 +0x2f1
github.com/tickstep/cloudpan189-go/cmder.TryLogin(0xc0001701c0)
	/Users/tickstep/Documents/Workspace/go/projects/cloudpan189-go/cmder/cmder_helper.go:122 +0x125
main.checkLoginExpiredAndRelogin()
	/Users/tickstep/Documents/Workspace/go/projects/cloudpan189-go/main.go:77 +0x5a
main.main()
	/Users/tickstep/Documents/Workspace/go/projects/cloudpan189-go/main.go:86 +0x86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions