FIREBASE警告:用户回调引发了异常。 TypeError:req.next不是具有nodejs的firebase中的函数

时间:2017-11-24 07:47:28

标签: node.js firebase

使用nodejs&创建自定义管理面板firebase,第二次重定向后得到错误,下面是整个错误包

FIREBASE WARNING: Exception was thrown by user callback. TypeError: req.next is not a function
            at done (/var/www/html/admin/node_modules/express/lib/response.js:966:25)
            at tryRender (/var/www/html/admin/node_modules/express/lib/application.js:642:5)
            at EventEmitter.render (/var/www/html/admin/node_modules/express/lib/application.js:592:3)
            at ServerResponse.render (/var/www/html/admin/node_modules/express/lib/response.js:971:7)
            at /var/www/html/admin/routes/index.js:101:9
            at /var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventRegistration.js:65:22
            at Object.exports.exceptionGuard (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/util/util.js:556:9)
            at EventList.raise (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventQueue.js:158:24)
            at EventQueue.raiseQueuedEventsMatchingPredicate_ (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventQueue.js:111:41)
            at EventQueue.raiseEventsForChangedPath (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventQueue.js:95:14)
        /var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/util/util.js:567
                    throw e;
                ^

TypeError: req.next is not a function
    at done (/var/www/html/admin/node_modules/express/lib/response.js:966:25)
    at tryRender (/var/www/html/admin/node_modules/express/lib/application.js:642:5)
    at EventEmitter.render (/var/www/html/admin/node_modules/express/lib/application.js:592:3)
    at ServerResponse.render (/var/www/html/admin/node_modules/express/lib/response.js:971:7)
    at /var/www/html/admin/routes/index.js:101:9
    at /var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventRegistration.js:65:22
    at Object.exports.exceptionGuard (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/util/util.js:556:9)
    at EventList.raise (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventQueue.js:158:24)
    at EventQueue.raiseQueuedEventsMatchingPredicate_ (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventQueue.js:111:41)
    at EventQueue.raiseEventsForChangedPath (/var/www/html/admin/node_modules/@firebase/database/dist/cjs/src/core/view/EventQueue.js:95:14)

1 个答案:

答案 0 :(得分:0)

感谢您查看问题&也期待着对此的快速反应 我已经解决了这个问题,所以想与其他所有人分享它的 FIREBASE查询问题 请检查您的所有疑问以便修复

对我而言,它可以通过将开启更改为一次

来实现