Closed fdw closed 3 years ago
Hey, thanks for reaching out and reporting this. Apologies for the lag time in getting back to you. I just released a patch version of the SMAPI SDK (1.6.1) that should address this issue. Basically the @JsonCreator annotation that Jackson needs to latch on to in order to materialize the Error class was missing. Please let me know if you continue to have issues with this following the upgrade.
Thanks for getting back on this!
I just tried it, but it still doesn't work. It's a different error, though:
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Builder class com.amazon.ask.smapi.model.v1.Error$Builder does not have build method (name: 'build')
Gah! I see that. I just released a patch version (1.6.2) that should address this. Apologies for the churn.
Thanks, that seems to have done it :)
I'm submitting a...
Expected Behavior
Even if I run into an error, it can be properly deserialzed.
Current Behavior
If I run into an error, Jackson also dies on me with these erros:
Steps to Reproduce (for bugs)
Call a method against the SMAPI that will return an error
Possible Solution
Provide a deserializer for
Error
Context
I would like to use the API, but it I run into an error, I cannot deal with it.
Your Environment
Java Info