Git Product home page Git Product logo

Comments (7)

sheagcraig avatar sheagcraig commented on June 27, 2024

I think the options are:
1.) Use PyObjC/NSURLConnection (look at Gurl.py in Munki). Benefits: Can do modern TLS stuff. Downsides: Forces us to use System Python. Lots of PyObjC!
2.) Shell out to curl. Allegedly curl can handle this stuff. Benefits: We know it works. Downsides: Cheesy.
3.) Add requests as a dependency (can be bundled with recipe robot due to license). Benefits: I have experience with this method. Downsides: See "Benefits".
4.) Quit dicking around and use python3.

from recipe-robot.

homebysix avatar homebysix commented on June 27, 2024

@eahrold Do you have an opinion? All the options seem equally good/bad.

from recipe-robot.

eahrold avatar eahrold commented on June 27, 2024

Not on this one. But I like the acronym QDAUP3

from recipe-robot.

jgstew avatar jgstew commented on June 27, 2024

I'm fairly certain there is a way to suppress this using pure python using the built in mac libraries. I think @hansen-m has done this for other autopkg related python scripts.

Might be related:

Now that I look into this more, it sounds like it is related to newer OpenSSL issues, with the server rejecting the client for not offering a supported encryption option, which isn't what I was thinking of originally.

from recipe-robot.

hansen-m avatar hansen-m commented on June 27, 2024

Yeah, this issue is becoming more common. I don't know the exact details here, but can you workaround it with this monkey-patch...

autopkg/recipes#100

from recipe-robot.

homebysix avatar homebysix commented on June 27, 2024

Is anybody still having this issue recently? The example given now works fine for me:

recipe-robot -v http://www.macroplant.com/latest-binaries/adapter-mac.dmg

The fix is probably the result of a change on macroplant.com, but could also be related to the fact that I'm testing on a newer version of macOS than I was back in 2015.

If the issue is rare or gone, I'll close this issue.

from recipe-robot.

homebysix avatar homebysix commented on June 27, 2024

If this issue wasn't already resolved in 2019, it should have been resolved when Recipe Robot switched from urllib to curl in 2.0.0.

from recipe-robot.

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.