-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to call getFileStatus
, could not find writer for content-type application/json
#102
Comments
Hey @rsukharnyk-smartling, could you please look into this or ask the right folks to do so and give us an update? thanks |
Hey @mahdi-canva . I've informed Team about Your request. Hope issue will be solved soon. Suppose You'll be notified additionally about the fix. |
Hey @rsukharnyk-smartling, just checking for any updates as we haven't heard back yet. |
Hey guys! I couldn't find any errors for your requests on the side of our services. Then I tried to reproduce the problem but couldn't. I've created an empty kotlin project in my ide, copy-pasted your list of the dependencies and your API initialization code. And it worked for me without any errors. build.gradle.kts:
Main.kt:
Output:
probably you have a dependencies conflict. it's not enough information to reproduce the issue. could you write the whole list of your dependencies and more information about your environment (java version, jdk version, kotlin version and so on)? |
Hi! Sorry for the noise here, it was indeed a dependency issues - namely, running this as a Gradle task, the runtime dependencies were lost at some point in the chain. We now have it working as intended :-) |
When using the Files API to call
getFileStatus
, I'm getting aRESTEASY004655
error:These are the dependencies I'm using (trying to follow the versions from the SDK and adding as runtime deps what I hoped would help - it didn't, more on this below):
This is how I create the API client:
And below, how it's used:
Without the additional runtime dependencies, the call to
getFileStatus
works, but then a call todownloadTranslatedFile
fails trying to parse XML (as far as I can tell - it does dump the Android strings XML files as the request body in the exception details as well):This is the PTO passed to
downloadTranslatedFile
:I'm assuming I'm either missing some runtime dependencies or initialisation to add a JSON and/or XML parser to RESTEasy (I'm not familiar with that at all). Is there a set-up part that's not documented/that I missed?
The text was updated successfully, but these errors were encountered: