RipMeApp / RipMeApp/ripme

Multireddits not working

Open
#2,136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.1k
Forks
673
PR merge metrics
No merged PRs in 30d

Description

Downloading of Multireddits (e.g. https://www.reddit.com/r/de+europe/) has stopped working and is giving a 404 not found error. The link works fine if I open it manually.

I think the issue is that the "+" gets converted to "%20". If I open the resulting link I also get a 404.

09:39:33.983 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.utils.Utils - Key tray.hide in en_US is: Hide
09:39:35.347 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.ripper.AbstractRipper - Found album ripper: com.rarchives.ripme.ripper.rippers.RedditRipper
09:39:35.353 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.ripper.AbstractRipper - Found album ripper: com.rarchives.ripme.ripper.rippers.RedditRipper
09:39:36.495 [AWT-EventQueue-0] INFO com.rarchives.ripme.utils.Utils - Saved configuration to C:\Users\redacted\AppData\Local\ripme\rip.properties
09:39:36.495 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.utils.Utils - Key queue in en_US is: Queue
09:39:36.496 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.utils.Utils - Key queue in en_US is: Queue
09:39:36.611 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.ripper.AbstractRipper - Found album ripper: com.rarchives.ripme.ripper.rippers.RedditRipper
09:39:36.612 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.ripper.AlbumRipper - Using album title 'reddit_sub_de'
09:39:36.612 [AWT-EventQueue-0] INFO com.rarchives.ripme.ripper.AlbumRipper - [+] Creating directory: rips\reddit_sub_de
09:39:36.627 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.ripper.AlbumRipper - Set working directory to: A:\ZA3Ref\Apps\ripper.\rips\reddit_sub_de
09:39:36.628 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.ripper.DownloadThreadPool - Initializing Main thread pool with 5 threads
09:39:36.629 [Thread-3] INFO com.rarchives.ripme.utils.Http - Trying to load cookies from config for www.reddit.com
09:39:36.629 [Thread-3] INFO com.rarchives.ripme.utils.Http - Trying to load cookies from config for reddit.com
09:39:36.882 [Thread-3] ERROR com.rarchives.ripme.ripper.AbstractRipper - Got exception while running ripper:
java.io.IOException: File not found https://www.reddit.com/r/de+europe/.json: Status Code 404.
at com.rarchives.ripme.utils.Http.response(Http.java:221) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at com.rarchives.ripme.ripper.rippers.RedditRipper.getJsonArrayFromURL(RedditRipper.java:194) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at com.rarchives.ripme.ripper.rippers.RedditRipper.getAndParseAndReturnNext(RedditRipper.java:123) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at com.rarchives.ripme.ripper.rippers.RedditRipper.rip(RedditRipper.java:109) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at com.rarchives.ripme.ripper.AbstractRipper.run(AbstractRipper.java:671) [ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at java.lang.Thread.run(Thread.java:1447) [?:?]
Caused by: org.jsoup.HttpStatusException: HTTP error fetching URL. Status=404, URL=[https://www.reddit.com/r/de%20europe/.json]
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:912) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:851) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:345) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
at com.rarchives.ripme.utils.Http.response(Http.java:205) ~[ripme-2.1.16-4-02372e85.jar:2.1.18-16-1342b621]
... 5 more
09:39:36.885 [Thread-3] DEBUG com.rarchives.ripme.ripper.AbstractRipper - Waiting for threads to finish
09:39:36.885 [Thread-3] INFO com.rarchives.ripme.ripper.AbstractRipper - Rip completed!
09:39:36.886 [Thread-3] INFO com.rarchives.ripme.ripper.AbstractRipper - Deleting empty directory A:\ZA3Ref\Apps\ripper.\rips\reddit_sub_de
09:39:36.964 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.utils.Utils - Key open in en_US is: Open
09:39:39.703 [AWT-EventQueue-0] DEBUG com.rarchives.ripme.utils.Utils - Key tray.show in en_US is: Show

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with com.rarchives.ripme.ripper.rippers.RedditRipper, especially getJsonArrayFromURL and the call from getAndParseAndReturnNext, then inspect Http.response where the URL is fetched. Reproduce the request for /r/de+europe/ and trace where + becomes %20. Done means the multireddit URL reaches Reddit unchanged and no longer returns 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.