We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Aspose.OMR Cloud SDK for JAVA throwing 400 error: User is undefined

Hi Aspose Support,

I’m testing this feature via: https://github.com/aspose-omr-cloud/aspose-omr-cloud-java
and got the response:
Using https://api.aspose.cloud/v1.1 app_sid cebbd972-e083-4ff4-9f0c-da0df94fed93
08/10/2021 10:40:16 Uploading demo files …
Exception in thread “main” com.aspose.storage.client.ApiException: {“Message”:“User is undefined. AppSID: cebbd972-e083-4ff4-9f0c-da0df94fed93, Version: API:1.1;PRODUCT:1.1.2.2;PRODUCT_CLOUD:1.1.2.2;, Method: GetIsExist.\r\nParameter name: UserID”}
at com.aspose.storage.client.ApiInvoker.invokeAPI(ApiInvoker.java:284)
at com.aspose.storage.api.StorageApi.GetIsExist(StorageApi.java:257)
at com.aspose.cloud.omr.demo.App.FileExists(App.java:116)
at com.aspose.cloud.omr.demo.App.UploadDemoFiles(App.java:123)
at com.aspose.cloud.omr.demo.App.main(App.java:276)

Please take a look.

P/S:
This project https://github.com/aspose-omr-cloud/aspose-omr-cloud-java/tree/master/java_demo does not works.
In order to make it works, I changed the dependency and the repository below:
from:

com.aspose
aspose-cloud-storage
1.0.2

to:

com.aspose
aspose-storage-cloud
1.0.2

from:

aspose-cloud
artifact.aspose-cloud-releases
http://artifact.aspose.cloud/repo

to

aspose-cloud
artifact.aspose-cloud-releases
https://repository.aspose.cloud/repo/

Thanks

@vctoan

We are sorry for the inconvenience. After initial investigation, we have logged a ticket OMRCLOUD-52 for further investigation and rectification. We will notify you as soon as it is resolved.