收藏
回答

miniprogram-ci 无法拉取最近上传版本的sourceMap

框架类型 问题类型 操作系统 工具版本
小程序 Bug macOS 1.0.72

按照 官方ci文档 调用 getDevSourceMap 方法,控制台输出如下报错:

(node:40494) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined

    at Promise (/Users/xxx/Desktop/xxapp/node_modules/_miniprogram-ci@1.0.72@miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:41:30)

    at processTicksAndRejections (internal/process/task_queues.js:86:5) 2.7s

(node:40494) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) 2.7s

(node:40494) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 2.7s


在源码 getDevSourceMap.js 中打印日志,发现请求 https://servicewechat.com/wxa/ci/get_dev_sourcemap 的回包是:

{"errCode":-1,"errMsg":"inner download source map fail with errcode: -80407, errmsg: "}


注:

  • miniprogram-ci版本1.0.72
  • 在macos和linux上运行,都是这个报错
最后一次编辑于  2020-08-20
回答关注问题邀请回答
收藏

6 个回答

  • circle
    circle
    2020-12-17

    @社区技术运营专员-CJiang 使用 ci buildNpm 后 upload 再 downloadSourceMap,报错:

    appid: wx22ba106979af59dd

    时间点:2020-12-17 10:00

    miniprogram-ci 版本:1.0.94

    机器人:1

    错误信息:

    { 
    
    errCode: -1,
    
    errMsg:'inner download source map fail with errcode: -80407, errmsg: ' 
    
    }
    
    (node:94767) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined
    
        at Promise (/Users/circle/code/xxx/node_modules/miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:46:26)
    
        at process._tickCallback (internal/process/next_tick.js:68:7)
    
    (node:94767) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    
    (node:94767) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    
    2020-12-17
    有用
    回复
  • 郑玺
    郑玺
    2020-11-04

    我这边也碰到了

    2020-11-04
    有用
    回复
  • 刘六
    刘六
    2020-10-29

    其实你的日志已经说得很明显了,promise 里有未捕捉的错误,导致 process 退出,我目前这么处理的,最终还是要官方解决后更新~~

    process.on('unhandledRejection', (reason, promise) => {
      console.log('======Unhandled Rejection:', reason, promise);
    });
    
    2020-10-29
    有用
    回复
  • TheGreatSageEquallingHeaven
    TheGreatSageEquallingHeaven
    2020-09-17

    appid: wxd18d0e7f7784a6c4

    2020-09-17 16:04 左右

    (node:30094) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined

        at Promise (/Users/Apple/mpupload/node_modules/_miniprogram-ci@1.0.79@miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:1:1241)

        at process._tickCallback (internal/process/next_tick.js:68:7)

    (node:30094) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    (node:30094) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    麻烦看看呢

    2020-09-17
    有用
    回复
  • 2020-08-21

    已内部反馈,多谢~

    2020-08-21
    有用
    回复 1
    • L-S-YUN
      L-S-YUN
      2020-10-14
      我也遇到同样的问题了,请问下是怎么解决的?
      2020-10-14
      回复
  • Cjiang
    Cjiang
    2020-08-19

    你好,麻烦提供一下appid。ci上传代码的机器人,和上传的时间点。

    2020-08-19
    有用
    回复 3
    • 刘六
      刘六
      2020-10-29
      你好,请问修复了吗~我看是下载失败,报了这个错误{"errCode":-1,"errMsg":"inner download source map fail with errcode: -80407, errmsg: "} 这个时候没有 data,但是还是在从这个字段获取 sourcemap_list。抛错以后没有 catch,导致 process 直接退出了。调用方没法也获取和处理这个异常。
      2020-10-29
      回复
    • Cjiang
      Cjiang
      2020-11-02回复刘六
      麻烦提供一下appid
      2020-11-02
      回复
    • 刘六
      刘六
      2020-11-03回复Cjiang
      你好,已解决。不过底层这里应该 catch 一下会比较好。
      2020-11-03
      回复
登录 后发表内容
问题标签