pCloud / pcloud-sdk-java

The official pCloud Java SDK repository
https://pcloud.github.io/pcloud-sdk-java/
Apache License 2.0
39 stars 14 forks source link

can not create file #35

Open VoidK2 opened 2 years ago

VoidK2 commented 2 years ago

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

georgi-neykov-hub commented 2 years ago

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

VoidK2 commented 2 years ago

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

VoidK2 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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.

georgi-neykov-hub commented 2 years ago

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