hartator / wayback-machine-downloader

Download an entire website from the Wayback Machine.
Other
5.16k stars 677 forks source link

Invalid argument @ rb_sysopen #178

Open lucky1804 opened 3 years ago

lucky1804 commented 3 years ago

When trying to download snapshot of https://fairies.disney.com/tinker-bell i get the following error

`C:\Users\private>wayback_machine_downloader https://fairies.disney.com/tinker-bell Downloading https://fairies.disney.com/tinker-bell to websites/fairies.disney.com/ from Wayback Machine archives.

Getting snapshot pagesC:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader/archive_api.rb:8:in initialize': Invalid argument @ rb_sysopen - http://web.archive.org/cdx/search/xd?url=https://fairies.disney.com/tinker-bell&fl=timestamp,original&collapse=digest&gzip=false&filter=statuscode:200 (Errno::EINVAL) from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader/archive_api.rb:8:inopen' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader/archive_api.rb:8:in get_raw_list_from_api' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:88:inget_all_snapshots_to_consider' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:105:in get_file_list_curated' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:168:inget_file_list_by_timestamp' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:309:in file_list_by_timestamp' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:192:indownload_files' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/bin/wayback_machine_downloader:72:in <top (required)>' from C:/Ruby30-x64/bin/wayback_machine_downloader:23:inload' from C:/Ruby30-x64/bin/wayback_machine_downloader:23:in `

'

C:\Users\private>`

nicholasserra commented 3 years ago

Looks like the latest patch hasn't been released, and last version isn't compatible with 3.0.0. Edit the files to match this patch:

https://github.com/hartator/wayback-machine-downloader/commit/e6707a9d8bcd42cf921da4aaf5afe77a13fca7cb

or download and install from the repo. Just ran into this and now I'm up and running.

lucky1804 commented 3 years ago

Looks like the latest patch hasn't been released, and last version isn't compatible with 3.0.0. Edit the files to match this patch:

e6707a9

or download and install from the repo. Just ran into this and now I'm up and running.

Thanks, i will try it now

lucky1804 commented 3 years ago

Looks like the latest patch hasn't been released, and last version isn't compatible with 3.0.0. Edit the files to match this patch:

e6707a9

or download and install from the repo. Just ran into this and now I'm up and running.

Thanks this worked

pabs3 commented 3 years ago

I think this has been fixed in commit 30475c5 and version 2.3.0, please upgrade.

@hartator you might want to close this issue.