pcloud-sdk-java icon indicating copy to clipboard operation
pcloud-sdk-java copied to clipboard

can not create file

Open VoidK2 opened this issue 2 years ago • 6 comments

java.lang.IllegalArgumentException: Parameter is not formatted correctly: "@version@-2ecfb849-63e1-4039-9830-8ba8d9379116----" for: "multipart/form-data; boundary=----pCloud-SDK-@version@-2ecfb849-63e1-4039-9830-8ba8d9379116----"

when build MultipartBody

VoidK2 avatar Mar 29 '22 07:03 VoidK2

@VoidK2 , which version of the SDK are you using? Which method from PCloudApiClient are you calling?

georgi-neykov-hub avatar Mar 29 '22 07:03 georgi-neykov-hub

1.7 ,happed when call
RemoteFile file = client.createFile(pathID, name, DataSource.create(new byte[1])).execute();

VoidK2 avatar Mar 29 '22 08:03 VoidK2

@VoidK2 , which version of the SDK are you using? Which method from PCloudApiClient are you calling? Have you updated the server code recently? because it worked one month ago ,but failed now ,when i want to upload file or create new empty file.

VoidK2 avatar Mar 29 '22 08:03 VoidK2

@VoidK2 , which version of the SDK are you using? Which method from PCloudApiClient are you calling?

after do following modify private static final String MULTIPART_BOUNDARY = "----"+ UUID.randomUUID() + "----"; it works ,but still some error when client.loadFile().execute(), if the file not exits , it will get a null object , but now, just throw exception.

VoidK2 avatar Mar 29 '22 08:03 VoidK2

there is a new bug ,when i upload a file , need to check whether the file exists , client.loadFile().execute() return exception, but file exist actually.

VoidK2 avatar Mar 29 '22 09:03 VoidK2

@VoidK2 can you update to version 1.8.1 of the SDK and let me know if the problem persists?

georgi-neykov-hub avatar Mar 30 '22 07:03 georgi-neykov-hub