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

上传文件夹报错 #66

Open
xiaofan-linux opened this issue Jan 14, 2024 · 4 comments
Open

上传文件夹报错 #66

xiaofan-linux opened this issue Jan 14, 2024 · 4 comments
Assignees

Comments

@xiaofan-linux
Copy link

➜  115 ./fake115uploader -a -m -recursive /var/log   
panic: initialize() error: postFormJSON() error: cannot parse JSON: cannot parse number: unexpected char: "<"; unparsed tail: "<!DOCTYPE html>\n<html lang=\"zh-cn\">\n\n<he... };\n    };\n  </script>\n</body>\n\n</html>\n"

goroutine 1 [running]:
main.checkErr(...)
        /root/fake115uploader/main.go:104
main.main()
        /root/fake115uploader/main.go:563 +0x60c
@orzogc orzogc self-assigned this Jan 14, 2024
@orzogc
Copy link
Owner

orzogc commented Jan 15, 2024

我这里没发现这个问题

@xiaofan-linux
Copy link
Author

xiaofan-linux commented Jan 22, 2024

我这里没发现这个问题

目前在阿里云ECS上执行,会经常提示这种错误...
上传的文件名格式如下:

Cryptomator/Video/d/22/Z5562UZLBYWEO65QJDENH7QKGOOBM2/DFqoeneK7tzUU56WYcWrVRtLk3jl69YKZg==.c9r
[root@iZwz94hsii4laqng3t4ebzZ 115]# ./fake115uploader -a -m -r ./stats/ -recursive ./Cryptomator
2024/01/22 15:06:08 上传文件夹 Cryptomator 出现错误:createDir() error: postFormJSON() error: cannot parse JSON: cannot parse number: unexpected char: "<"; unparsed tail: "<!DOCTYPE html>\n<html lang=\"zh-cn\">\n\n<he... };\n    };\n  </script>\n</body>\n\n</html>\n"

@orzogc
Copy link
Owner

orzogc commented Jan 22, 2024

再次上传能不能成功?

@xiaofan-linux
Copy link
Author

再次上传能不能成功?

也不行(上传大量的小文件),测试发现,本地电脑上传同样的文件没有出现此问题,只有在阿里云ECS上使用阿里云内网上传会出现上述问题.
出现上述问题后,浏览器使用DeveloperTools查看115请求信息是405,被禁止了,过一段时间好了。

感觉是上传过快,可能会被阻止暂时访问,导致任务失败。

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

2 participants