收藏
回答

知道怎么解决吗?VM4962 WAService.js:2 Error: errCode: -1

请问报下面的错误是什么原因导致? 我使用的是云开发,有两个环境一个拿来测试,一模一样的代码切换到正式环境就正常,测试环境就不OK,前一阵子还好,最近就报这问题,导致数据无法储存。


代码片段提供不了,无法单页复现,得整个工程运行。 估计是 cloud.callFunction 问题,但不知具体原因


VM4962 WAService.js:2 Error: errCode: -1  | errMsg: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Runtime.HandlerNotFound: index:main is undefined or not exported

    at Object.module.exports.load (:37518/var/runtime/node10/UserFunction.js:47)

    at Runtime.handleOnce (:37518/var/runtime/node10/Runtime.engine.js:98)

    at Timeout.setTimeout [as _onTimeout] (:37518/var/runtime/node10/Runtime.engine.js:55)

    at ontimeout (:37518/appservice/timers.js:436)

    at tryOnTimeout (:37518/appservice/timers.js:300)

    at listOnTimeout (:37518/appservice/timers.js:263)

    at Timer.processTimers (:37518/appservice/timers.js:223) (callId: 1650297761661-0.7604778833015697) (trace: 0:2:41 start->0:2:42 system error (Error: errCode: -504002 functions execute fail | errMsg: Runtime.HandlerNotFound: index:main is undefined or not exported

    at Object.module.exports.load (:37518/var/runtime/node10/UserFunction.js:47)

    at Runtime.handleOnce (:37518/var/runtime/node10/Runtime.engine.js:98)

    at Timeout.setTimeout [as _onTimeout] (:37518/var/runtime/node10/Runtime.engine.js:55)

    at ontimeout (:37518/appservice/timers.js:436)

    at tryOnTimeout (:37518/appservice/timers.js:300)

    at listOnTimeout (:37518/appservice/timers.js:263)

    at Timer.processTimers (:37518/appservice/timers.js:223)), abort); at cloud.callFunction api; 

    at new g (VM4962 WAService.js:2)

    at c (VM4962 WAService.js:2)

    at I (VM4962 WAService.js:2)

    at VM4962 WAService.js:2(env: macOS,mp,1.05.2203030; lib: 2.15.0)

errorReport @ VM4962 WAService.js:2

thirdErrorReport @ VM4962 WAService.js:2

(anonymous) @ VM4962 WAService.js:2

I @ VM4962 WAService.js:2

o @ VM4962 WAService.js:2

(anonymous) @ VM4962 WAService.js:2

value @ VM4962 WAService.js:2

o @ VM4962 WAService.js:2

(anonymous) @ VM4962 WAService.js:2

VM4962 WAService.js:2 

回答关注问题邀请回答
收藏
登录 后发表内容