sdouglass / spring-social-tumblr

Spring Social client implementation for Tumblr
Apache License 2.0
17 stars 12 forks source link

Exception while handling OAuth1 callback (I/O error: Unrecognized field "share_likes" (Class org.springframework.social.tumblr.api.UserInfoBlog), not marked as ignorable #9

Closed ghost closed 11 years ago

ghost commented 11 years ago

at [Source: java.io.StringReader@12e1e74d; line: 1, column: 354](through reference chain: org.springframework.social.tumblr.api.impl.json.UserInfoResponse["user"]->org.springframework.social.tumblr.api.UserInfo["blogs"]->org.springframework.social.tumblr.api.UserInfoBlog["share_likes"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "share_likes" (Class org.springframework.social.tumblr.api.UserInfoBlog), not marked as ignorable at [Source: java.io.StringReader@12e1e74d; line: 1, column: 354](through reference chain: org.springframework.social.tumblr.api.impl.json.UserInfoResponse["user"]->org.springframework.social.tumblr.api.UserInfo["blogs"]->org.springframework.social.tumblr.api.UserInfoBlog["share_likes"])). Redirecting to tumblr connection status page.

This happened when I was trying to connect my app with tumblr

sdouglass commented 11 years ago

I pushed some changes which should address Tumblr adding new data to their responses going forward. Unrecognized fields will be in a Map<String, Object> in every response object called "properties" accessible via a "getProperties()" method. I've tested locally and I don't get this exception anymore. If you have a chance to get the latest code or the new 1.0a1 version (see the updated README) let me know if it works for you.

sdouglass commented 11 years ago

I'm going to go ahead and close this, as the changes I pushed should handle this and future new fields that Tumblr adds to their API, for the most part. If you're still having problems please create a new issue. Thanks!