request:fail -2:net::ERR_FAILED 问题原因

问题原因

https证书过期

解决方法

自行搜索https证书过期解决办法

或修改nginx,用http访问

错误日志

小程序访问时报错,错误日志如下

(in promise) MiniProgramError
{"errno":600001,"errMsg":"request:fail -2:net::ERR_FAILED","config":{"baseURL":"https://************.cn/dev-api","method":"GET","url":"/open/index/index-area","params":{},"custom":{},"header":{"Authorization":""},"timeout":60000,"dataType":"json","responseType":"text","data":{},"fullPath":"https://************.cn/dev-api/open/index/index-area"}}
Object

猜你喜欢

转载自blog.csdn.net/qq_42315633/article/details/131392280