Giter Club home page Giter Club logo

Comments (7)

matteofigus avatar matteofigus commented on June 29, 2024

Https is supported and I use this tool myself to benchmark across https services.
Can you share your code? And what is null? The value of the results callback?

Thanks
Matteo

from api-benchmark.

magicode118 avatar magicode118 commented on June 29, 2024

Ah my bad... didn't realize it was returning an error:
self signed certificate in certificate chain

Is there a way to accept self-signed certs for testing in local env?

from api-benchmark.

matteofigus avatar matteofigus commented on June 29, 2024

Uhm, I got a similar problem recently with a specific node.js version. Can you try upgrading node to >= 0.10.35 and see if the issue persists? In my case, I solved it this way

from api-benchmark.

magicode118 avatar magicode118 commented on June 29, 2024

Hmm I'm running on v0.12.0. I'll try setting up the web-server on my own machine instead of local-network and see how it goes from there.

from api-benchmark.

matteofigus avatar matteofigus commented on June 29, 2024

I made a quick investigation. Given we use superagent to do the actual requests, I found some issues and PRs related to self-signed certificates: ladjs/superagent#198
ladjs/superagent#205

can you try
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

from api-benchmark.

magicode118 avatar magicode118 commented on June 29, 2024

Ok cool! I don't know if it will help, but for now I solved the issue by adding: process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

from api-benchmark.

matteofigus avatar matteofigus commented on June 29, 2024

Looks like node by default used to accept self-signed certificates and this changed very recently. This setting fixes it. Closing the issue so. Thanks for your contribute

Matteo

from api-benchmark.

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.