问答详情
源自:4-3 电影列表

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


提问者:qq_明星阿晶_0 2019-11-26 10:17

个回答

  • 羽之展翅
    2021-01-14 15:34:40

    http://img3.mukewang.com/5ffff4070001def108490250.jpg这样子也报错

  • 羽之展翅
    2021-01-14 15:31:57

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

    http://img4.mukewang.com/5ffff36800016e8f12980240.jpg

  • 你若安好便是晴天6736305
    2020-07-30 16:23:18

    咋解决的

  • 慕仔8415870
    2020-07-04 21:31:11

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


  • 3831710
    2020-03-26 11:10:52

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


    老师的回答

  • weibo_慕娘4104752
    2019-12-17 10:34:07

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

  • qq_明星阿晶_0
    2019-11-26 10:27:35

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

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