Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket::ResolutionError) #294

Open
DuperNO-Alt opened this issue May 30, 2024 · 1 comment
Open

Socket::ResolutionError) #294

DuperNO-Alt opened this issue May 30, 2024 · 1 comment

Comments

@DuperNO-Alt
Copy link

DuperNO-Alt commented May 30, 2024

i got this error:

C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1603:in `initialize': Failed to open TCP connection to web.archive.org:443 
(getaddrinfo: Nieznany host. ) (Socket::ResolutionError)
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1603:in `open'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1603:in `block in connect'
        from C:/Ruby33-x64/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout'
        from C:/Ruby33-x64/lib/ruby/3.3.0/timeout.rb:193:in `timeout'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1601:in `connect'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1580:in `do_start'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1569:in `start'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:334:in `open_http'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:770:in `buffer_open'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:220:in `block in open_loop'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:218:in `catch'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:218:in `open_loop'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:158:in `open_uri'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:750:in `open'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader/archive_api.rb:13:in `get_raw_list_from_api'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:92:in `block in get_all_snapshots_to_consider'
        from <internal:numeric>:237:in `times'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:91:in `get_all_snapshots_to_consider'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:105:in `get_file_list_curated'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:164:in `get_file_list_by_timestamp'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:310:in `file_list_by_timestamp'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:192:in `download_files'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/bin/wayback_machine_downloader:72:in `<top (required)>'
        from C:/Ruby33-x64/bin/wayback_machine_downloader:32:in `load'
        from C:/Ruby33-x64/bin/wayback_machine_downloader:32:in `<main>'
C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1603:in `initialize': getaddrinfo: Nieznany host.  (Socket::ResolutionError)
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1603:in `open'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1603:in `block in connect'
        from C:/Ruby33-x64/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout'
        from C:/Ruby33-x64/lib/ruby/3.3.0/timeout.rb:193:in `timeout'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1601:in `connect'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1580:in `do_start'
        from C:/Ruby33-x64/lib/ruby/3.3.0/net/http.rb:1569:in `start'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:334:in `open_http'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:770:in `buffer_open'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:220:in `block in open_loop'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:218:in `catch'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:218:in `open_loop'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:158:in `open_uri'
        from C:/Ruby33-x64/lib/ruby/3.3.0/open-uri.rb:750:in `open'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader/archive_api.rb:13:in `get_raw_list_from_api'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:92:in `block in get_all_snapshots_to_consider'
        from <internal:numeric>:237:in `times'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:91:in `get_all_snapshots_to_consider'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:105:in `get_file_list_curated'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:164:in `get_file_list_by_timestamp'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:310:in `file_list_by_timestamp'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/lib/wayback_machine_downloader.rb:192:in `download_files'
        from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wayback_machine_downloader-2.3.1/bin/wayback_machine_downloader:72:in `<top (required)>'
        from C:/Ruby33-x64/bin/wayback_machine_downloader:32:in `load'
        from C:/Ruby33-x64/bin/wayback_machine_downloader:32:in `<main>'
@dezine3
Copy link

dezine3 commented Jun 3, 2024

This repository is outdated, so people use an up to date fork instead, this "issue" is just instructions for people on how to get it working.

  1. Install required ruby version
  2. Download zip / clone fork from ShiftaDeband https://github.com/ShiftaDeband/wayback-machine-downloader
  3. Navigate to wayback-machine-downloader\bin
  4. On windows, you can launch power shell by shift + right click empty space in folder and selecting Open power shell
  5. From here you can run the program with ruby wayback_machine_downloader instead of normal wayback_machine_downloader if you installed it as gem

You can also uninstall the original non functional gem if you installed it previously with gem uninstall wayback_machine_downloader

Don't forget to star ShiftaDeband

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants