- 为什么上传代码的时候出现这个错误,是什么原因?
[图片] Error: Error: {"errCode":-1,"errMsg":"3rd upload or preview error, dev platform ext appid not auth"} 是什么原因呢
2020-10-22 - 小程序CI上传代码到第三方报错,dev platform ext appid not auth?
### 场景说明 #### 正常情况 1. 非第三方小程序的,通过小程序ci已经可以正常上传到小程序的体验版 2. 第三方小程序的,通过开发者工具也能上传到第三方小程序的草稿箱 #### 非正常情况 1. 第三方小程序通过小程序ci上传报错,信息如下: request url: https://servicewechat.com/wxa/ci/upload?codeprotect=0&type=miniProgram&appid=***&version=2.1.0&desc=prod%E5%88%86%E9%94%80%E7%AC%AC%E4%B8%89%E6%96%B9%2Cundefined%2C2021-3-29%204%3A38%3A28%20PM&robot=1&debugL aunchInfo=%7B%22scene%22%3A1011%7D&extAppId=*** TaskStatus { _status: 'done', _msg: [String: 'upload'], _id: '0.42332794183326361617007112130' } 20003 'Error: {"errCode":-1,"errMsg":"3rd upload or preview error, dev platform ext appid not auth"}' (node:10420) UnhandledPromiseRejectionWarning: Error: Error: {"errCode":-1,"errMsg":"3rd upload or preview error, dev platform ext appid not auth"} ### 代码设置 - ext.json的配置。其中extAppid和我上传的appid是一致的 {"extEnable":true,"extAppid":"***","ext":{"extAppid":"**"},"directCommit":false} [图片] - 上传代码(这里应该是没有问题的,除了第三方,其他几个小程序我都试过能正常用ci上传) (async () => { const project = new ci.Project({ appid, type: "miniProgram", projectPath, privateKeyPath, ignores: ["node_modules/**/*"], }); const uploadResult = await ci.upload({ project, version: "2.1.0", // 版本上线或重新提交,改这里的版本即可 desc, setting: { autoPrefixWXSS: true, // 样式补全 }, onProgressUpdate: console.log, }); })(); ### 其他尝试 - 秘钥的问题。秘钥已经确认过无误了,如果秘钥不对会报另一个“no ticket”的错误 - appid和extAppid的问题。这个也确认过了,如果是appid或extAppid不对的话,会报这个错 20003 'Error: {"errCode":-1,"errMsg":"get new ticket fail innerCode: -80011"}' - 授权的问题。开发者工具能正常上传,而且是同一份代码,应该不是授权的问题?
2021-04-01 - 开放平台上传小程序代码,为什在ext_json参数里配置这个entryPagePath 配置项无效?
ext_json: {"extEnable":true,"extAppid":"xxxxxxxxxxxxx","entryPagePath":"pages/tabBar/user/view/user/user","tabBar":{"list":[{"text":"个人中心","iconPath":"/images/hotel_no.png","selectedIconPath":"/images/hotel_select.png","pagePath":"pages/tabBar/user/view/user/user","origin_pagePath":"pages/tabBar/user/view/user/user"},{"text":"商城","iconPath":"/images/index_no.png","selectedIconPath":"/images/index_select.png","pagePath":"pages/tabBar/product/index/index","origin_pagePath":"pages/tabBar/product/index/index"}]}}
2020-09-21