收藏
回答

miniprogram-ci上传提示20003错误

问题类型 操作系统 工具版本
Bug macOS - name: Install miniprogram-ci run: npm install -g miniprogram-ci less

https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.htmlhttps://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html

- name: MiniprogramCiUpload
  run: |
    miniprogram-ci upload \
      --project-type miniProgram \
      --appid xxxid \
      --project-path ./client/house \
      --private-key-path /tmp/private.key \
      --upload-version "${{ github.ref_name }}" \
      --upload-description "CI build ${{ github.ref_name }} @ ${{ github.sha }}" \
      --robot 1 \
      --threads 2
appid、private.key 都是确认过多次都是对的

LOG:
[info] useCOS parameter:  undefined

[info] upload zip buffer size:  40080

[info] request url: https://servicewechat.com/wxa/ci/upload?codeprotect=0&type=miniProgram&appid=wxd633f4e3271229ac&version=v17.38&desc=CI%20build%20v17.38%20%40%203fc0a393ee6a66eb7a6b86c241d3cab5dc1c9512&robot=1&debugLaunchInfo=%7B%22scene%22%3A1011%7D

Error:  20003 Error: {"errCode":-1,"errMsg":"inner get attr fail with errcode: 41001, errmsg: access_token missing"}

CodeError: Error: {"errCode":-1,"errMsg":"inner get attr fail with errcode: 41001, errmsg: access_token missing"}

    at innerUpload (/usr/local/lib/node_modules/miniprogram-ci/dist/ci/upload.js:1:4420)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

    at async upload (/usr/local/lib/node_modules/miniprogram-ci/dist/ci/upload.js:1:1066)

    at async Object.upload (/usr/local/lib/node_modules/miniprogram-ci/dist/utils/report.js:1:1490)

    at async run (/usr/local/lib/node_modules/miniprogram-ci/dist/cli/index.js:1:10718) {

  code: 20003

}



回答关注问题邀请回答
收藏

1 个回答

  • 张晨  🔆
    张晨 🔆
    05-07
    errmsg: access_token missing
    

    key 有问题。

    可以搞个无痕模式的 浏览器去重置key。

    05-07
    有用
    回复
登录 后发表内容