为了账号安全,请及时绑定邮箱和手机立即绑定

TypeError: console.err is not a function

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


正在回答

7 回答

http://img1.sycdn.imooc.com//5ffff4070001def108490250.jpg这样子也报错

0 回复 有任何疑惑可以回复我~

http://img1.sycdn.imooc.com//5ffff3520001e3bf10780363.jpg还是报错

http://img1.sycdn.imooc.com//5ffff36800016e8f12980240.jpg

0 回复 有任何疑惑可以回复我~

咋解决的

0 回复 有任何疑惑可以回复我~

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


1 回复 有任何疑惑可以回复我~

豆瓣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`


老师的回答

0 回复 有任何疑惑可以回复我~

要怎样解决?我也遇到了一样的问题

1 回复 有任何疑惑可以回复我~

这个问题解决了,有了新问题

{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而且日志里没有记录

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

TypeError: console.err is not a function

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信