Free Support Forum - aspose.cloud

We are using these aspose libraries as scala dependencies in our project and getting following issue

Hi there,

“com.aspose” % “aspose-words-cloud” % “21.4.0”,
“com.aspose” % “aspose-pdf-cloud” % “21.1.0”

we are using these aspose libraries as scala dependencies in our project and getting following issue

com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 252 path $
at com.google.gson.Gson.assertFullConsumption(Gson.java:864)
at com.google.gson.Gson.fromJson(Gson.java:854)
at com.google.gson.Gson.fromJson(Gson.java:802)
at com.aspose.words.cloud.JSON.deserialize(JSON.java:150)
at com.aspose.words.cloud.ApiClient.deserialize(ApiClient.java:673)
at com.aspose.words.cloud.model.requests.UploadFileRequest.deserializeResponse(UploadFileRequest.java:193)
at com.aspose.words.cloud.api.WordsApi.uploadFileWithHttpInfo(WordsApi.java:21942)
at com.aspose.words.cloud.api.WordsApi.uploadFile(WordsApi.java:21919)
at client.AsposeClient.uploadFile(AsposeClient.java:148)
at client.AsposeClient.lambda$uploadFilesToAspose$2(AsposeClient.java:123)
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 252 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1568)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1409)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:542)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)
at com.google.gson.Gson.assertFullConsumption(Gson.java:860)
at com.google.gson.Gson.fromJson(Gson.java:854)
at com.google.gson.Gson.fromJson(Gson.java:802)
at com.aspose.words.cloud.JSON.deserialize(JSON.java:150)
at com.aspose.words.cloud.ApiClient.deserialize(ApiClient.java:673)
at com.aspose.words.cloud.model.requests.UploadFileRequest.deserializeResponse(UploadFileRequest.java:193)

Is there any known issue related to his? Any help would be much appreciated.

@jbrady1990

We are sorry for the inconvenience. We are investigating the issue(WORDSCLOUD-1608) and will share our findings with you soon. Meanwhile, we will appreciate it if you please share a sample project to replicate the issue. It will help us to replicate the issue and guide you.

@jbrady1990

Please find attached the sample project, we cannot reproduce the reported issue with our sample project. Kindly create and share a sample project to replicate the error at our end for further investigation.

untitled1.zip (128.3 KB)