WSL文件上传时有时候出现panic:runtime error
ljc-fight opened this issue · comments
有时候能正常上传文件,有时候出现报错
报错信息如下:
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/cloudpan189-api@v0.1.0/cloudpan/login.go:151 +0x4b2
github.com/tickstep/cloudpan189-api/cloudpan.Login(0xc00009c9e0, 0xb, 0xc00009ca30, 0xf, 0xc00009a750, 0x0)
/Users/tickstep/Applications/go/pkg/mod/github.com/tickstep/cloudpan189-api@v0.1.0/cloudpan/login.go:68 +0xc5
github.com/tickstep/cloudpan189-go/cmder.DoLoginHelper(0xc00009c9e0, 0xb, 0xc00009ca30, 0xf, 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(0xc0001b21c0)
/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