收藏
回答

新购买了云开发资源,但仍提醒云开发资源超限,怎么解决?

昨天刚购买的云开发资源。

报错信息:

Error: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Error: collection.count:fail -501003 exceed request limit. [ResourceUnavailable.ResourceOverdue] Resource has expired. Please renewal fee, but if the problem cannot be solved, contact us.

    at Object.toSDKError (:40803/var/user/node_modules/wx-server-sdk/index.js:8094)

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

    at :40803/var/user/node_modules/wx-server-sdk/index.js:1558

    at processTicksAndRejections (:40803/appservice/internal/process/task_queues.js:97) (callId: 1676959610778-0.07121370817589101) (trace: 14:6:50 start->14:6:51 system error (Error: errCode: -504002 functions execute fail | errMsg: Error: collection.count:fail -501003 exceed request limit. [ResourceUnavailable.ResourceOverdue] Resource has expired. Please renewal fee, but if the problem cannot be solved, contact us.

    at Object.toSDKError (:40803/var/user/node_modules/wx-server-sdk/index.js:8094)

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

    at :40803/var/user/node_modules/wx-server-sdk/index.js:1558

    at processTicksAndRejections (:40803/appservice/internal/process/task_queues.js:97)), abort)

    at N (WASubContext.js?t=wechat&s=1676947303272&v=2.26.0:1)

    at WASubContext.js?t=wechat&s=1676947303272&v=2.26.0:1


已经修改了环境id:


云函数均已部署:


当前环境也进行了选择:


求解决方法,感谢!

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

1 个回答

  • Shannon
    Shannon
    2023-02-21

    你好,发现您的报错来自云函数代码(wx-server-sdk),请检查:

    • 云函数代码中(非小程序代码)cloud.init 是否携带了 env 参数?可以使用 cloud.DYNAMIC_CURRENT_ENV 直接使用当前云环境

    2023-02-21
    有用 1
    回复 1
    • 小半
      小半
      发表于移动端
      2023-02-21
      感谢,已经解决了,确实是云函数入口没有修改cloud.init
      2023-02-21
      回复
登录 后发表内容