收藏
回答

调用云函数生成小程序码 云函数日志报错 是为啥?

我调用云函数生成小程序码 但后台日志报错如下,但生成的小程序码是能够返回的 (注释掉page 是因为一放开根本就无法生成 是因为我还没发布吗?)


console.log("=======1=====scene:",scene)

console.log("=======1=====page:", page)

try {

const result = await cloud.openapi.wxacode.getUnlimited({

//page:page,

scene: scene

})

2019-12-02T08:09:58.994Z  =======1=====scene: 111111


2019-12-02T08:09:58.994Z  =======1=====page: pages/index/index


2019-12-02T08:09:59.310Z  { Error: errCode: 41030  | errMsg: openapi.wxacode.getUnlimited:fail invalid page hint: [x3E8ea01994245]

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

at /var/user/node_modules/wx-server-sdk/index.js:2552:43

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: 41030,

errMsg: 'openapi.wxacode.getUnlimited:fail invalid page hint: [x3E8ea01994245]' }



END RequestId: 220a0b13-14db-11ea-841d-525400b2c41b

Report RequestId: 220a0b13-14db-11ea-841d-525400b2c41b Duration:320ms Memory:256MB MaxMemoryUsed:38.281250MB




最后一次编辑于  12-02
回答关注问题邀请回答
收藏
问题标签