我尝试避免使用证书:
'com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate
expired at Sun Aug 19 14:35:22 GMT+02:00 2018 (compared to Wed Sep 05 18:49:18 GMT+02:00 2018)',
我找到了类似的解决方案:add httpsAgent with rejectUnauthorized: false
但是当我尝试实现代理时,我得到Unresolved type Agent
代码:
const agent = new https.Agent({
rejectUnauthorized: false
});
我已经导入:
import https from 'https'
我做了yarn add https
有什么问题?我应该添加或更改什么?