jsvine / jsvine/waybackpack

generate list failed with `to_json': source sequence is illegal/malformed utf-8

Open
#47 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.2k
Forks
214
PR merge metrics
No merged PRs in 30d

Description

/build/lib/wayback_machine_downloader.rb:182:in `to_json': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)
        from /build/lib/wayback_machine_downloader.rb:182:in `block in list_files'
        from /build/lib/wayback_machine_downloader.rb:181:in `each'
        from /build/lib/wayback_machine_downloader.rb:181:in `list_files'
        from /build/bin/wayback_machine_downloader:70:in `<top (required)>'
        from /usr/local/bundle/bin/wayback_machine_downloader:17:in `load'
        from /usr/local/bundle/bin/wayback_machine_downloader:17:in `<main>'

seems some url contain some invalid % escape sequence

Contributor guide

No contributing guide indexed for this repository

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

Read lib/wayback_machine_downloader.rb around list_files at lines 181-182 and reproduce the failure with a URL containing malformed escaping. Done means list generation no longer fails with the JSON::GeneratorError while handling the affected URL entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.