首页 文章
  • 0 votes
     answers
     views

    connect-flash用户存在错误未显示?

    连接并尝试显示我通过console.log获取此错误消息(错误) {UserExistsError:具有给定用户名的用户已在Promise.resolve.then.then.then注册(/Users/rprater/Desktop/Hephaestus/EasyU/node_modules/passport-local-mongoose/index.js:238:17)名称:'UserExis...
  • 0 votes
     answers
     views

    错误:“发送后无法设置标头 . ”

    我是nodejs及其路由系统的新手 . 我收到了“发送后无法设置 Headers ” . 仅在Heroku上的 生产环境 模式(它在本地工作正常) . //登录========================================= router.get('/', ifLoggedOut, function(req, res, next){ res.render('login',...
  • 0 votes
     answers
     views

    NodeJS,docker,nginx - req.flash()需要会话

    我在nginx后面的Node应用程序有问题 . 在开始时,我将解释基础设施: NGINX =>(prox_pass)=> Docker(将端口暴露给主机)=>节点APP 应用程序运行良好,但我有连接闪存问题(我使用PassportJS) . 我有错误: req.flash() requires sessions 在我的本地计算机上,我没有任何问题(我作为 生产环境 环境运行)...

热门问题