慕标6397320
2019-06-01 21:41
Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -504002, error message error is not defined; at cloud.callFunction api;
at new t (WAService.js:22)
at o (WAService.js:22)
at Object.i [as returnAsFinalCloudSDKError] (WAService.js:22)
at Function.success (WAService.js:21)
at Object.success (WAService.js:4)
at L.<anonymous> (WAService.js:7)
at L.emit (WAService.js:8)
at Function.<anonymous> (WAService.js:12)
at WAService.js:6
at e (appservice?t=1559396243951:3991)
console.error @ VM8663:1
(anonymous) @ movie.js:20
Promise rejected (async)
onLoad @ movie.js:15
(anonymous) @ WAService.js:19
$t @ WAService.js:19
on @ WAService.js:20
sn @ WAService.js:20
(anonymous) @ WAService.js:20
(anonymous) @ WAService.js:19
L.emit @ WAService.js:8
emit @ WAService.js:6
(anonymous) @ WAService.js:9
(anonymous) @ WAService.js:6
e @ appservice?t=1559396243951:3991
n.registerCallback.t @ appservice?t=1559396243951:3991
u.forEach.t @ appservice?t=1559396243951:3991
(anonymous) @ appservice?t=1559396243951:3991
a.onmessage @ appservice?t=1559396243951:3991
从错误码上看是云函数执行失败。检查下你的云函数中是否有用到error这个变量,看错误提示说error未定义。领带在then中的res也没有定义。
rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)
轻松入门微信小程序与云开发
64581 学习 · 1742 问题
相似问题