generate list failed with `to_json': source sequence is illegal/malformed utf-8
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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