system
(system)
April 1, 2021, 11:18pm
1
This topic was automatically generated from Slack. You can find the original thread here .
Nacho Caballero : I was trying to fix this axios error (unable to verify the first certificate) using this answer: node.js - Error: unable to verify the first certificate in nodejs - Stack Overflow But when I ran this line I got an error
const rootCas = require('ssl-root-cas').create();
Cannot find module 'ssl-root-cas'
The module is here: https://www.npmjs.com/package/ssl-root-cas
system
(system)
April 1, 2021, 11:18pm
2
Dylan Sather (Pipedream) : The npm docs show:
var rootCas = require('ssl-root-cas/latest').create();
If you try that, does that work?
system
(system)
April 1, 2021, 11:18pm
3
Nacho Caballero : I also tried that, same result
system
(system)
April 1, 2021, 11:18pm
4
Dylan Sather (Pipedream) : can you share your workflow with dylan@pipedream.com ? I’m not seeing the same error
system
(system)
April 1, 2021, 11:18pm
5
Nacho Caballero : Sorry for the trouble, Dylan. It turns out the error appears only if I use rootCas incorrectly in a subsequent step. I think I’ve fixed it. It was just throwing me off because I thought the problem was in the require.
system
(system)
April 1, 2021, 11:18pm
6
Dylan Sather (Pipedream) : No problem, glad you got it sorted