Coder Social home page Coder Social logo

Comments (6)

DATA-HORIZON avatar DATA-HORIZON commented on August 29, 2024

Hello,

the same topic was discussed here:
request/request#418

Solution that worked for me:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"

Another possible solution can be found here:
http://stackoverflow.com/questions/15254976/how-do-i-use-the-node-js-request-module-to-make-an-ssl-call-with-my-own-certific

Best wishes
Michael

from frisby.

vlucas avatar vlucas commented on August 29, 2024

Awesome. Glad you found the solution!

from frisby.

doug-nara avatar doug-nara commented on August 29, 2024

This doesn't seem like a resolution to me. Frisby should be able to handle this.

from frisby.

vlucas avatar vlucas commented on August 29, 2024

Frisby v0.x uses the request library, and passes all the options down to it. So Frisby supports this via request options.

Request SSL options are here:
https://github.com/request/request#tlsssl-protocol

e.g.

frisby.post('http://example.com', {field: 'value'}, {
    cert: fs.readFileSync(certFile),
    key: fs.readFileSync(keyFile),
    passphrase: 'password',
    ca: fs.readFileSync(caFile)
});

from frisby.

jiawenzhang avatar jiawenzhang commented on August 29, 2024

I set serverURL to http://localhost:8081/parse and it solved the problem. My parse is deployed to AWS Beanstalk, and port 8081 is what Beanstalk uses to run node server.

The client side serverURL is still using https.

from frisby.

fletchgqc avatar fletchgqc commented on August 29, 2024

@vlucas your example works for me, thanks, but is there a way to include this in the globalSetup? I tried the obvious things and they didn't work for me.

from frisby.

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.