原文:eggjs 框架代理调试 SELF_SIGNED_CERT_IN_CHAIN 报错解决方案

eggjs 中的 this.ctx.curl 可以发起一个请求,配置 proxy 可以很方面的通过接口进行问题定位。代理方式如下: 开启egg development proxyagent,配置 http proxy https proxy 环境变量,将代理地址配置为本地 export https proxy http: . . . : export http proxy http: . . . ...

2017-06-26 11:10 0 1891 推荐指数:

查看详情

node https请求时self signed certificate in certificate chain错误

node业务中调用https请求时,经常都会爆出一个异常的错误,查了一下是证书过期,但是axios已经设置了忽略证书了,还是报错: 最后在网上找到方法,在请求代码之前加上 解决了当前https报的self signed certificate ...

Tue Nov 12 22:33:00 CST 2019 0 2174
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM