question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RipMe cannot extract imgur galleries (JSON error)

See original GitHub issue

Issue Description

RipMe cannot extract imgur galleries

I believe there was a new change on Imgur that is now preventing RipMe from automatically grabbing a gallery. The logfile shows a JSON error when reading the link. (I am now back to doing the downloading manually via the Imgur site).

Example; _http://imgur.com/a/1SQ1p/all _ - has 107 images

RipMe runs but no images downloaded; http://i.imgur.com/8SPnwFL.png

Ripping in RipMe ends up in an empty folder; http://i.imgur.com/3qLKvfQ.png

Error in logfile

2016-04-22 05:31:44,486 INFO  ripper.AbstractRipper .getImgurAlbum()     Retrieving http://imgur.com/a/1SQ1p/all
2016-04-22 05:31:45,087 DEBUG ripper.AbstractRipper .getImgurAlbum() Error while parsing JSON at http://imgur.com/a/1SQ1p/all, continuing
org.json.JSONException: JSONObject["description"] not a string.

Logfile attached.

log.txt log.txt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
4pr0ncommented, Apr 24, 2016

Blah.

This is what happens when I stop using software I wrote.

0reactions
unt0uchablecommented, Apr 23, 2016

I can confirm this is a bug in v1.2.12.

The error is in ImgurRipper.java:230 and occurs for any image without a description. When the code attempts image.getString("description") it fails because the value mapped to description for the image is null.

Ripme can successfully extract images that do have a description. For example, it will successfully retrieve http://imgur.com/a/tRtKF.

Perform a proactive check for null beforehand using the JsonObject.isNull(String name) method:

if (!image.isNull("description")) {
    description = image.getString("description");
}

Is it possible to downgrade until this bug is resolved?

Any ETA on when a fix can be deployed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RipMe 1.7.94 is out - Reddit
I noticed that it says that it fixed ImageFap, but I'm having a problem. When loading a gallery in, it says "Downloading" and...
Read more >
Problem extract data file json from Imgur API - Stack Overflow
I found it. The correct way is to do this.props.post["images"][0].link.
Read more >
gallery-dl/main - Gitter
Downloading and converting a Pixiv Ugoira with classify and ugoira enabled would result in some weird side-effects, I just noticed. The classify ...
Read more >
r/ripme - Reddit post and comment search - SocialGrep
Tumblr issue - Cannot invoke 2. It doesn't matter which tumblr page I try, no matter which one, I get the error: Cannot...
Read more >
Free Automated Malware Analysis Service - powered by Falcon ...
Filename: ripme.jar; Size: 4MiB (4224753 bytes); Type: java; Description: Zip archive data, at least v2.0 to extract; Architecture; WINDOWS; SHA256 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found