uni-app云函数返回 errCode: 40013 | errMsg: invalid appid

uni-app云函数返回 errCode: 40013 | errMsg: invalid appid

问题描述

uni-id版本为3.1.0,使用云端云函数报错:

2021-05-18T13:37:30.245Z ERROR RequestId:22f2894c-b79b-11eb-9728-525400a8c4bb Result:{"errCode":1,"errMsg":"user code exception caught","stackTrace":"errCode: 40013 | errMsg: invalid appid rid: 60a3529a-33130adb-7127aecc

本地调试云函数时好时坏

报错的点在于云函数调用微信接口的地方,如wxBizDataCryptloginByWeixin

config.json配置正确并已上传

manifest也配置正确

请问什么原因?


更多关于uni-app云函数返回 errCode: 40013 | errMsg: invalid appid的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

使用自定义基座了吗?

更多关于uni-app云函数返回 errCode: 40013 | errMsg: invalid appid的实战教程也可以访问 https://www.itying.com/category-93-b0.html


没有,后来发现config.json必须放在uni-config-center的uni-id目录下才有效,而不是uni-id目录下

回到顶部