问答详情
源自:4-3 电影列表

之前已经发布成功了,问什么现在打开小程序时,电影页面为空? 我打开开发工具,也报出了错误

VM1212:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501000, error message Environment not found; at cloud.callFunction api; 

    at new u (WAService.js:1)

    at d (WAService.js:1)

    at f (WAService.js:1)

    at Function.success (WAService.js:1)

    at WAService.js:1

    at C (WAService.js:1)

    at i.<anonymous> (WAService.js:1)

    at i.emit (WAService.js:1)

    at Rs (WAService.js:1)

    at WAService.js:1


提问者:语诺菲菲 2020-02-19 15:53

个回答

  • 谢成
    2020-02-19 18:12:27

    错误信息是云环境未找到,请在app.js中配置云环境id:

    wx.cloud.init({

        // 此处请填入环境 ID, 环境 ID 可打开云控制台查看

        env: 'xxxxxx',

        traceUser: true,

    })