upyun / upx

UPYUN Storage Command Tool
MIT License
197 stars 42 forks source link

upx put 报错 #68

Closed hom closed 3 years ago

hom commented 3 years ago

错误信息

➜  data git:(master) upx put city.json
upanic: runtime error: index out of range [0] with length 0

goroutine 18 [running]:
github.com/gosuri/uiprogress.(*Bar).Bytes(0xc00019a200, 0xc000064180, 0xc00008c240, 0xc000046778)
    github.com/gosuri/uiprogress@v0.0.1/bar.go:195 +0x525
github.com/gosuri/uiprogress.(*Bar).String(...)
    github.com/gosuri/uiprogress@v0.0.1/bar.go:214
github.com/gosuri/uiprogress.(*Progress).print(0xc0000b2720)
    github.com/gosuri/uiprogress@v0.0.1/progress.go:127 +0x9e
github.com/gosuri/uiprogress.(*Progress).Listen(0xc0000b2720)
    github.com/gosuri/uiprogress@v0.0.1/progress.go:114 +0x45
created by github.com/gosuri/uiprogress.(*Progress).Start
    github.com/gosuri/uiprogress@v0.0.1/progress.go:134 +0x3f

报错场景: 在使用 upx put上传文件夹的时候,发现报错,就手动单个上传文件,当执行到这个 city.json 文件的时候,报错再次出现,而其他的文件均正常上传,猜想是 upx 就此 json 文件识别为了配置文件,因此抛出了错误