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

调用storageClient.upload_file(bytes, extension, null)方法有时会返回null #701

Open
XuanfengHong opened this issue Apr 3, 2024 · 4 comments

Comments

@XuanfengHong
Copy link

fdfs版本:5.12
fdfs-client-java版本:1.28

具体情况:
我将一份PDF切割成2份,转换成byte[]调用storageClient.upload_file(bytes, extension, null)方法进行上传
image
但是第二份byte[]上传时,返回的path是null,
有时候第一份上传的时候也会是null,
debug发现errno是17,
image
请问这是什么原因??

@XuanfengHong
Copy link
Author

补充说明:
发生 17 错误的时候,都是我调用过这个方法以后产生的
image

即我上传过一份带有master,prefix参数的文件后,再调用只有byte[]和extension参数的upload_file就会报错17的错误

@happyfish100
Copy link
Owner

你这是上传从文件了,prefix这个参数不会为空字符串吧?
另外,master相同的情况下,一对prefix和extension对应的从文件只能上传一次。

@XuanfengHong
Copy link
Author

prefix肯定是不为空的,现在最奇怪的是上传了一次从文件以后,在调用普通的upload_file(bytes[],extension,null)这个方法时,就会报错误17,以至于没有办法再上传文件了,除非后面所有的文件都当作第一次上传的master文件的从文件,一直调用上传从文件的接口,就不会错...
请问这是什么原因?我应该怎么调整?

@happyfish100
Copy link
Owner

v5.12版本有点低,强烈建议升级到最新版本。
友情提示:server端和 client sdk需要同步升级。

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