收藏
回答

云函数定时调用报了个错误,请问这是什么原因造成的呢?

在小程序调用是正常,然后定时调用后就报错了。

返回结果

{"errCode":-501001,"errMsg":"envname field not exsit in url; "}

日志

START RequestId: a4848441-0294-11ea-bd14-525400e8849e

Event RequestId: a4848441-0294-11ea-bd14-525400e8849e


2019-11-09T02:00:02.741Z  { Error: errCode: -501001 resource system error | errMsg: envname field not exsit in url;

at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6395:28)

at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6447:16)

at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1678:23)

at Query.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1744:41)

at step (/var/user/node_modules/tslib/tslib.js:136:27)

at Object.next (/var/user/node_modules/tslib/tslib.js:117:57)

at fulfilled (/var/user/node_modules/tslib/tslib.js:107:62)

at <anonymous>

at process._tickCallback (internal/process/next_tick.js:188:7) errCode: -501001, errMsg: 'envname field not exsit in url; ' }



END RequestId: a4848441-0294-11ea-bd14-525400e8849e

Report RequestId: a4848441-0294-11ea-bd14-525400e8849e Duration:12ms Memory:256MB MaxMemoryUsed:60.343750MB


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

1 个回答

  • Darren
    Darren
    2019-11-10

    我也遇到了这个问题,顶上去

    2019-11-10
    有用
    回复 2
    • Hunter
      Hunter
      2019-11-10
      我解决了,是初始化环境名称要手动填上去就可以了
      2019-11-10
      回复
    • Darren
      Darren
      2019-11-10回复Hunter
      谢谢,我其他的云函数都没问题,就这一个出问题了,写法都一样的
      2019-11-10
      回复
登录 后发表内容
问题标签