-404011 cloud function 出现错误

来源:4-3 电影列表

慕标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

https://img4.mukewang.com/5cf2808b0001dc9307160259.jpg

写回答 关注

2回答

  • 谢成
    2019-06-03 09:01:36

    从错误码上看是云函数执行失败。检查下你的云函数中是否有用到error这个变量,看错误提示说error未定义。领带在then中的res也没有定义。

  • qq_慕函数3014581
    2019-06-01 22:40:54

    rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)


轻松入门微信小程序与云开发

深入浅出微信小程序核心基础与云开发,使你掌握小程序开发必备技能。

64581 学习 · 1742 问题

查看课程

相似问题