Giter VIP home page Giter VIP logo

Comments (3)

tknerr avatar tknerr commented on August 16, 2024

Hmmm.... manchmal geht es:

...
checking cache for 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
download 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
redirecting to https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
download 'https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
redirecting to http://cloud.github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
download 'http://cloud.github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
caching as '7baee9aecdfe07111b14012864c1f1af'
extracting 'C:/Users/tkn/AppData/Local/Temp/d20140306-9732-svoad2/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe' to 'D:/Repos/_github/bills-kitchen/target/build/tools/devkit'
...

... und manchmal nicht:

...
checking cache for 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
download 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
redirecting to /downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
download '/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
rake aborted!
No connection could be made because the target machine actively refused it. - connect(2)
D:/Repos/_github/bills-kitchen/Rakefile:242:in `download_no_cache'
D:/Repos/_github/bills-kitchen/Rakefile:248:in `block (2 levels) in download_no_cache'
D:/Repos/_github/bills-kitchen/Rakefile:243:in `block in download_no_cache'
D:/Repos/_github/bills-kitchen/Rakefile:242:in `download_no_cache'
D:/Repos/_github/bills-kitchen/Rakefile:217:in `download'
D:/Repos/_github/bills-kitchen/Rakefile:204:in `block in download_and_unpack'
D:/Repos/_github/bills-kitchen/Rakefile:202:in `download_and_unpack'
D:/Repos/_github/bills-kitchen/Rakefile:126:in `block in download_tools'
D:/Repos/_github/bills-kitchen/Rakefile:114:in `each'
D:/Repos/_github/bills-kitchen/Rakefile:114:in `download_tools'
D:/Repos/_github/bills-kitchen/Rakefile:22:in `block in <top (required)>'
Tasks: TOP => build
(See full trace by running task with --trace)

So wie es aussieht bekommen wir einen HTTP 302 Redirect mit relativem Pfad, damit können wir nicht umgehen.

Interessant ist dass laut HTTP 1.1 Spec nur absolute URIs erlaubt sind ;-P
http://tools.ietf.org/html/rfc1945#page-44
https://webmasters.stackexchange.com/questions/31274/what-are-the-consequences-for-using-relative-location-headers

Könnte man per Heuristik fixen (wenn relative URL, dann muss es https sein?), oder einfach nochmal probieren. Hmpf.

from bills-kitchen.

tknerr avatar tknerr commented on August 16, 2024

Sollte mit #43 behoben sein, zumindest ist der Fehler beim Download des neueren DevKit nicht mehr aufgetreten...

from bills-kitchen.

alfert avatar alfert commented on August 16, 2024

Oder man kann https URLs angeben. Das wäre flexibler und hilfreich.

2014-03-06 23:38 GMT+01:00 tknerr [email protected]:

Hmmm.... manchmal geht es:

...
checking cache for 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
download 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
redirecting to https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
download 'https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
redirecting to http://cloud.github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
download 'http://cloud.github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
caching as '7baee9aecdfe07111b14012864c1f1af'
extracting 'C:/Users/tkn/AppData/Local/Temp/d20140306-9732-svoad2/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe' to 'D:/Repos/_github/bills-kitchen/target/build/tools/devkit'
...

... und manchmal nicht:

...
checking cache for 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
download 'http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
redirecting to /downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
download '/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe'
rake aborted!
No connection could be made because the target machine actively refused it. - connect(2)
D:/Repos/_github/bills-kitchen/Rakefile:242:in download_no_cache' D:/Repos/_github/bills-kitchen/Rakefile:248:inblock (2 levels) in download_no_cache'
D:/Repos/_github/bills-kitchen/Rakefile:243:in block in download_no_cache' D:/Repos/_github/bills-kitchen/Rakefile:242:indownload_no_cache'
D:/Repos/_github/bills-kitchen/Rakefile:217:in download' D:/Repos/_github/bills-kitchen/Rakefile:204:inblock in download_and_unpack'
D:/Repos/_github/bills-kitchen/Rakefile:202:in download_and_unpack' D:/Repos/_github/bills-kitchen/Rakefile:126:inblock in download_tools'
D:/Repos/_github/bills-kitchen/Rakefile:114:in each' D:/Repos/_github/bills-kitchen/Rakefile:114:indownload_tools'
D:/Repos/_github/bills-kitchen/Rakefile:22:in `block in <top (required)>'
Tasks: TOP => build
(See full trace by running task with --trace)

So wie es aussieht bekommen wir einen HTTP 302 Redirect mit relativem
Pfad, damit können wir nicht umgehen.

Interessant ist dass laut HTTP 1.1 Spec nur absolute URIs erlaubt sind ;-P
http://tools.ietf.org/html/rfc1945#page-44

https://webmasters.stackexchange.com/questions/31274/what-are-the-consequences-for-using-relative-location-headers

Könnte man per Heuristik fixen (wenn relative URL, dann muss es https
sein?), oder einfach nochmal probieren. Hmpf.

Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-36946610
.

from bills-kitchen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.