hartator / wayback-machine-downloader

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

Getting Errno::EINVAL no matter which site I try to test #183

Open Azuraeleth opened 3 years ago

Azuraeleth commented 3 years ago

Full log from PowerShell here: PS D:\test> wayback_machine_downloader http://example.com Downloading http://example.com to websites/example.com/ from Wayback Machine archives.

Getting snapshot pagesD:/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=http://example.com&fl=timestamp,original&collapse=digest&gzip=false&filter=statuscode:200 (Errno::EINVAL) from D:/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 D:/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 D:/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 D:/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 D:/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 D:/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 D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/lib/wayback_machine_downloader.rb:192:indownload_files' from D:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/wayback_machine_downloader-2.2.1/bin/wayback_machine_downloader:72:in <top (required)>' from D:/Ruby30-x64/bin/wayback_machine_downloader:23:inload' from D:/Ruby30-x64/bin/wayback_machine_downloader:23:in `

'

What am I missing?

SArfrz commented 3 years ago

I'm also facing the exact same issue, Please let me know if you find any alternative.

Darhagonable commented 3 years ago

I had the same issue running on Windows 10. I tired now again but on a Mac with no issues. I guess it only works on Mac or Linux

Keymaker-co commented 3 years ago

Same!

hi-im-karl commented 3 years ago

Also have this issue, Windows 10 Pro

ioumesh commented 3 years ago

getting the same issue how to resolve it ??

hi-im-karl commented 3 years ago

Found fix in Issue #178 thread thanks to 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.

Up and running for me now

pabs3 commented 3 years ago

@hartator I think this is fixed in 2.3.0 and can be closed.