Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Version 10 of node.js has been released
- Send binary-data HOT 1
- Question: What time is measured and is it customizable? HOT 1
- Parallel request time strangeness HOT 1
- Request errors breaks response tab HOT 1
- Build HTML server side HOT 4
- Track benchmark completed time HOT 2
- Move benchmark generated date to results object
- Ability to listen to runner event emitter HOT 1
- Expected response body handler callback HOT 2
- In "compare" mode HTML output only displays stats of first server HOT 5
- Ability to provide a client side certificate HOT 5
- Spike box and whisker plot visualisation
- Show numbers using exponential notations
- Distribution tab should show graph starting from 0
- Dynamic request data HOT 2
- docker image of api-benchmark HOT 1
- api-benchmark vs ab HOT 1
- Need service-specific headers HOT 1
- Allow route to be a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-benchmark.