云函数调用出错?
发布于 8 年前 作者 fang97 7463 次浏览 来自 官方Issues

Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID f0d0c03a-11a8-11ea-8d7f-52540025df0e, cloud function service error code -504002, error message Unexpected token o in JSON at position 1

SyntaxError: Unexpected token o in JSON at position 1

    at JSON.parse (<anonymous>)

    at EventHandler.exports.main [as realHandler] (:35375/var/user/index.js:17)

    at <anonymous>

    at process._tickCallback (:35375/appservice/internal/process/next_tick.js:188); at cloud.callFunction api; 

    at new u (VM5756 WAService.js:1)

    at d (VM5756 WAService.js:1)

    at f (VM5756 WAService.js:1)

    at Function.success (VM5756 WAService.js:1)

    at VM5756 WAService.js:1

    at C (VM5756 WAService.js:1)

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

    at i.emit (VM5756 WAService.js:1)

    at $i (VM5756 WAService.js:1)

    at VM5756 WAService.js:1

2 回复

JSON解析报错了

感觉好像是小程序内部的为题, 云开发BUg太多,我云函数调用的时候经常报错,我都不想用云函数了

回到顶部