wayback-machine-downloader icon indicating copy to clipboard operation
wayback-machine-downloader copied to clipboard

Invalid argument @ rb_sysopen

Open lucky1804 opened this issue 4 years ago • 4 comments

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:in open' 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:in get_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:in get_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:in download_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:in load' from C:/Ruby30-x64/bin/wayback_machine_downloader:23:in `

'

C:\Users\private>`

lucky1804 avatar Jan 16 '21 01:01 lucky1804

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.

nicholasserra avatar Jan 16 '21 02:01 nicholasserra

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 avatar Jan 16 '21 02:01 lucky1804

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

lucky1804 avatar Jan 16 '21 03:01 lucky1804

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

@hartator you might want to close this issue.

pabs3 avatar Jun 07 '21 09:06 pabs3