在接入云开发之前,进行了腾讯云上微搭的授权,随后取消,删除其授权及环境。
接着在开发者工具中创建云开发环境,运行 demo 获取 openid 时,提示运行 sh ./uploadCloudFunction.sh
最后报错如下:
0:14:02 › sh ./uploadCloudFunction.sh
✔ IDE server has started, listening on http://127.0.0.1:33186
✔ Using AppID: wx0***
✔ [quickstartFunctions] cloudfunction quickstartFunctions exists in the cloud, will update it
✔ [quickstartFunctions] upload cloud function quickstartFunctions - deploy✔ deploy cloudfunctions
┌─────────────────────┬─────────┬────────────┬──────────┐
│ (index) │ success │ filesCount │ packSize │
├─────────────────────┼─────────┼────────────┼──────────┤
│ quickstartFunctions │ true │ 15 │ '4.1 KB' │
└─────────────────────┴─────────┴────────────┴──────────┘
✔ IDE server has started, listening on http://127.0.0.1:33186
✔ Using AppID: wx0***
✖ fetching cloud env list
[error] {
code: 10,
message: 'Error: 错误 Error: env lowcode-5ge4drco827ea6bb not exists (code 10)Error: env lowcode-5ge4drco827ea6bb not exists\n' +
' at Object.exports.functionsDeploy [as method] (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/core.wxvpkg/a9f5a79cd51b9c0f4560d088ea44d2a0.js:2:1616)\n' +
' at async /Applications/wechatwebdevtools.app/Contents/Resources/package.nw/core.wxvpkg/7a975443f52e91830ae1d65cdf8c86db.js:2:3347\n' +
' at async Object.<anonymous> (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/core.wxvpkg/7a975443f52e91830ae1d65cdf8c86db.js:2:2881)'
}
你好,lowcode-5ge4drco827ea6bb 这个是低码的环境,低码的环境不允许在小程序使用,仅限低码使用,如果不需要这个低码环境可直接在低码控制台删除,删除低码应用时会有删除环境的入口。https://console.cloud.tencent.com/lowcode/app/owner