Open avietrov opened 3 years ago
'File is required' is returned by the Files API when the file
parameter is not provided or doesn't have content
Please ensure that JACKSON_OBJECT_MAPPER.writeValueAsString(myDTOWithStrings)
returns any content and stream
variable is not read between instantiation and calling filesApi.importTranslations()
It might be helpful to log serialized requests made by SDK using logging filter, so we could know if SDK sends an empty file or an API interpret non-empty file as empty
Thanks for your response, I'll add some logging and get back to you :)
We are using smartling java sdk 0.18 to upload dynamically generated json files to smartling. We use FilesAPI for that like this:
Quite often we get the exception:
Executing the code again usually helps, but I'd like to avoid that error in the first place. What does this error actually mean and how can we avoid getting it?