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

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

Open
theLSA opened this issue Sep 11, 2024 · 6 comments

Comments

@theLSA
Copy link

theLSA commented Sep 11, 2024

前两天还正常,今天就出现如下报错,是否天翼云的登录接口变了?
//比如./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
@duchenpaul
Copy link

duchenpaul commented Sep 11, 2024

一样, 删除cloud189_config.json重新登陆显示登录失败.
估计是网页改了

cloudpan189-go > login
请输入用户名(手机号/邮箱/别名), 回车键提交 > 189********
请输入密码(输入的密码无回显, 确认输入完成, 回车提交即可) > 
APP登录失败: 登录失败
登录失败

@mou-min
Copy link

mou-min commented Sep 12, 2024

也一样,以为IP被强了,结果几台服务器都一样返回信息。

@yww211
Copy link

yww211 commented Sep 13, 2024

+1
image

@yww211
Copy link

yww211 commented Sep 13, 2024

@tickstep help~

@immoke
Copy link

immoke commented Sep 18, 2024

今天刚刚下载这个项目,结果一直报相同的错。我一度怀疑自己账号密码错了

@equator8848
Copy link

应该是无了,天翼云可能想推自己的API,就改版了。https://cloud.189.cn/web/open#/abilityIntro/api

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

6 participants