Unable to verify the first certificate in Node.js Unable to verify the first certificate in Node.js express express

Unable to verify the first certificate in Node.js


I solve this problem by using another package it's called "request" also don't forget to add

process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

before calling the API.