Giter Site home page Giter Site logo

Comments (3)

abraxxa avatar abraxxa commented on August 23, 2024

I have a similar issue which I can't work around on because there seems no way to set IO::Socket::Async::SSL parameters.

Died because of the exception:
    Tried to get the result of a broken Promise
      in block  at /home/ahartmai/.perl6/sources/ECCB15BAEF09CE282370A569F7B29849407D48B5 (Cro::HTTP::Client) line 604

    Original exception:
        Tried to get the result of a broken Promise
          in block  at /home/ahartmai/.perl6/sources/0609EA0BB03C70C2C15DB4B144D7041C1059D14C (Cro::TLS) line 108

        Original exception:
            An operation first awaited:
              in block  at /home/ahartmai/.perl6/sources/A4ECA701FE96A8456AEB83692D6B3C55AAFC964C (IO::Socket::Async::SSL) line 322

            Died with the exception:
                Certificate contains no altnames to check host against
                  in block  at /home/ahartmai/.perl6/sources/A4ECA701FE96A8456AEB83692D6B3C55AAFC964C (IO::Socket::Async::SSL) line 322

from cro-http.

abraxxa avatar abraxxa commented on August 23, 2024

I just found a workaround as the ca parameter is in fact passed to Cro::TLS unmodified:

my $client = Cro::HTTP::Client.new:
    ca => {
        insecure => True
    };

from cro-http.

demanuel avatar demanuel commented on August 23, 2024

for using with the get call:

Cro::HTTP::Client.get($url, ca=> { :insecure })

from cro-http.

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.