Andrew D. Robertson

Results 8 comments of Andrew D. Robertson

I guess this becomes an increasing problem as JRAW loses support and the Reddit API continues to change. Here's my hack to avoid having to alter and re-build JRAW (essentially...

This looks like the JSON deserialisation going wrong because a `SubredditSearchResult` has a null `iconUrl`. Perhaps you can use a workaround similar to mine; when I was finding `OEmbed` elements...

Is this because it's not the EmbeddedMedia type that is null, but actually the OEmbed type that is null? Which isn't marked as Nullable in the source: ```java /** *...

Is the only necessary fix to mark that field as Nullable?

Here's the workaround that I'm using to avoid the need to change JRAW. **I pass in a custom HTTP client, which intercepts requests and removes the offending JSON** (oembed elements...

The work around I mention above was the only way I could get it to work. Just amounts to catching the 401s and re-calling `client.submission(submissionID).comments()`

Yeah, you only need to do those 4 lines once: ```java Credentials credentials = Credentials.script(apiKey.username, apiKey.password, apiKey.clientID, apiKey.clientSecret); NetworkAdapter adapter = new OkHttpNetworkAdapter(getUserAgent()); RedditClient reddit = OAuthHelper.automatic(adapter, credentials); reddit.setAutoRenew(true); ```...

Wow that was a pain to find. I have a workaround.... The problem was that another one of my maven dependencies was pulling in a version of `commons-codec` which switches...