qq_明星阿晶_0
2019-11-26 10:17
VM2427:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 86945901-0ff2-11ea-8374-525400dee61a, cloud function service error code -504002, error message console.err is not a function
TypeError: console.err is not a function
at :11327/var/user/index.js:16
at tryCatcher (:11327/var/user/node_modules/bluebird/js/release/util.js:16)
at Promise._settlePromiseFromHandler (:11327/var/user/node_modules/bluebird/js/release/promise.js:547)
at Promise._settlePromise (:11327/var/user/node_modules/bluebird/js/release/promise.js:604)
at Promise._settlePromise0 (:11327/var/user/node_modules/bluebird/js/release/promise.js:649)
at Promise._settlePromises (:11327/var/user/node_modules/bluebird/js/release/promise.js:725)
at _drainQueueStep (:11327/var/user/node_modules/bluebird/js/release/async.js:93)
at _drainQueue (:11327/var/user/node_modules/bluebird/js/release/async.js:86)
at Async._drainQueues (:11327/var/user/node_modules/bluebird/js/release/async.js:102)
at Immediate.Async.drainQueues (:11327/var/user/node_modules/bluebird/js/release/async.js:15)
at runCallback (:11327/appservice/timers.js:789)
at tryOnImmediate (:11327/appservice/timers.js:751)
at processImmediate [as _immediateCallback] (:11327/appservice/timers.js:722); at cloud.callFunction api;
at new u (WAService.js:1)
at d (WAService.js:1)
at f (WAService.js:1)
at Function.success (WAService.js:1)
at WAService.js:1
at C (WAService.js:1)
at i.<anonymous> (WAService.js:1)
at i.emit (WAService.js:1)
at Rs (WAService.js:1)
at WAService.js:1
这样子也报错
还是报错
咋解决的
return rp(`http://api.douban.com/v2/movie/top250?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)
豆瓣API有变化,需要在请求API的url后面跟一个apikey参数:
电影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
电影详情API:`http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a`
老师的回答
要怎样解决?我也遇到了一样的问题
这个问题解决了,有了新问题
{errMsg: "cloud.callFunction:ok", result: null, requestID: "f74afa40-0ff3-11ea-83a1-525400dee61a"}errMsg: "cloud.callFunction:ok"requestID: "f74afa40-0ff3-11ea-83a1-525400dee61a"result: null__proto__: Object
结果是null而且日志里没有记录
轻松入门微信小程序与云开发
64581 学习 · 1742 问题
相似问题