收藏
回答

本页面调用云函数出错,其它页面能调用?求助!

Error: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Runtime.UserCodeSyntaxError: SyntaxError: Identifier 'errMsg' has already been declared

    at Object.module.exports.load (:37284/var/runtime/node12/UserFunction.js:32)

    at Runtime.handleOnce (:37284/var/runtime/node12/Runtime.engine.js:99)

    at Timeout._onTimeout (:37284/var/runtime/node12/Runtime.engine.js:56)

    at listOnTimeout (:37284/appservice/internal/timers.js:549)

    at processTimers (:37284/appservice/internal/timers.js:492) (callId: 1677992868309-0.1366574944541823) (trace: 13:7:48 start->13:7:49 system error (Error: errCode: -504002 functions execute fail | errMsg: Runtime.UserCodeSyntaxError: SyntaxError: Identifier 'errMsg' has already been declared

    at Object.module.exports.load (:37284/var/runtime/node12/UserFunction.js:32)

    at Runtime.handleOnce (:37284/var/runtime/node12/Runtime.engine.js:99)

    at Timeout._onTimeout (:37284/var/runtime/node12/Runtime.engine.js:56)

    at listOnTimeout (:37284/appservice/internal/timers.js:549)

    at processTimers (:37284/appservice/internal/timers.js:492)), abort)

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

    at WASubContext.js?t=wechat&s=1677941466073&v=2.25.4:1(env: Windows,mp,1.06.2301040; lib: 2.25.4)

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

1 个回答

  • minimalistrojan
    minimalistrojan
    发表于小程序端
    2023-03-06

    第一行显示明显有语法错误啊:errMsg 已经被定义过了。

    2023-03-06
    有用
    回复
登录 后发表内容