Slide icon indicating copy to clipboard operation
Slide copied to clipboard

Editing multireddit names doesn't work

Open Controless opened this issue 11 years ago • 3 comments

I have a multireddit named 'helping_multi' and when I try to change the name to 'helping', an error pops up. I've included some pictures to show this in effect.

screenshot_2015-11-18-19-38-48 screenshot_2015-11-18-19-38-55 screenshot_2015-11-18-19-38-59

Controless avatar Nov 19 '15 03:11 Controless

This is because it throws a '403 Forbidden' Network Exception. It's showing a wrong error because i catched this expception with an wrong username dialog. Here's the expection:

net.dean.jraw.http.NetworkException: Request returned non-successful status code: 403 Forbidden
11-19 16:17:45.810 14787-14843/me.ccrama.redditslide W/System.err:     at net.dean.jraw.http.RestClient.execute(RestClient.java:132)
11-19 16:17:45.810 14787-14843/me.ccrama.redditslide W/System.err:     at net.dean.jraw.RedditClient.execute(RedditClient.java:150)
11-19 16:17:45.811 14787-14843/me.ccrama.redditslide W/System.err:     at net.dean.jraw.RedditClient.execute(RedditClient.java:144)
11-19 16:17:45.811 14787-14843/me.ccrama.redditslide W/System.err:     at net.dean.jraw.managers.MultiRedditManager.createOrUpdate(MultiRedditManager.java:73)
11-19 16:17:45.811 14787-14843/me.ccrama.redditslide W/System.err:     at me.ccrama.redditslide.Activities.CreateMulti$SaveMulti.doInBackground(CreateMulti.java:275)
11-19 16:17:45.811 14787-14843/me.ccrama.redditslide W/System.err:     at me.ccrama.redditslide.Activities.CreateMulti$SaveMulti.doInBackground(CreateMulti.java:254)
11-19 16:17:45.811 14787-14843/me.ccrama.redditslide W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:288)
11-19 16:17:45.812 14787-14843/me.ccrama.redditslide W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-19 16:17:45.812 14787-14843/me.ccrama.redditslide W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
11-19 16:17:45.812 14787-14843/me.ccrama.redditslide W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-19 16:17:45.812 14787-14843/me.ccrama.redditslide W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-19 16:17:45.812 14787-14843/me.ccrama.redditslide W/System.err:     at java.lang.Thread.run(Thread.java:818)

It still works with the play store version, so it has something to do with a change we made. It doesn't worked with the commit before my pr though.

Edit: dc93ca006e5551ddf492e809e7be90a747a21922 introduced the bug, the new JRAW lib.

l3d00m avatar Nov 19 '15 15:11 l3d00m

https://github.com/thatJavaNerd/JRAW/issues/93 looks similiar

l3d00m avatar Dec 28 '15 14:12 l3d00m

I believe this is fixed already! Just tested on v4.5

ccrama avatar Jan 12 '16 22:01 ccrama