lharney
(Lharney)
1
Hey,
I am getting this error when requesting an access token on a third party API: UNABLE_TO_VERIFY_LEAF_SIGNATURE.
I believe this is an SSL certificate issue.
How can I bypass the SSL certificate using axios on pipedream? It works when I send the same request in postman. Seems to be a similar issue as this: javascript - Unable to verify leaf signature - Stack Overflow
Thanks,
Lar
lharney
(Lharney)
2
Resolved on the slack channel:
import https from 'https';
import { axios } from '@pipedream/axios';
const agent = new https.Agent({
rejectUnauthorized: false
});
const res = await axios($, {
method: "GET",
url: `YOUR URL HERE`,
headers: {
Authorization: `Bearer ${YOUR APPS CONFIGURATION HERE}`,
},
httpsAgent: agent,
})
1 Like