Error in running my server using nodeJs express
NickName:user1741722 Ask DateTime:2015-03-28T08:18:28

Error in running my server using nodeJs express

While running my server using nodeJs express, I go below error:

express-session deprecated undefined resave option; provide resave option server.js:16:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option server.js:16:9
C:\openshift\nodejs\node_modules\express\lib\router\index.js:291
    throw new Error(msg);
          ^
Error: .get() requires callback functions but got a [object Undefined]
    at C:\openshift\nodejs\node_modules\express\lib\router\index.js:291:11
    at Array.forEach (native)
    at Router.route (C:\openshift\nodejs\node_modules\express\lib\router\index.js:287:13)
    at Router.(anonymous function) [as get] (C:\openshift\nodejs\node_modules\express\lib\router\index.js:318:16)
    at Function.app.(anonymous function) (C:\openshift\nodejs\node_modules\express\lib\application.js:412:26)
    at Object.<anonymous> (C:\openshift\nodejs\server.js:31:5)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
PS C:\openshift\nodejs>

How can I resolve this?

Copyright Notice:Content Author:「user1741722」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29312168/error-in-running-my-server-using-nodejs-express

More about “Error in running my server using nodeJs express” related questions

Error in running my server using nodeJs express

While running my server using nodeJs express, I go below error: express-session deprecated undefined resave option; provide resave option server.js:16:9 express-session deprecated undefined

Show Detail

Running NodeJS/Express projects on production server

1 With different apps different website domain etc, NodeJS cannot go to production with host:*some port other than 80*, right? If I am wrong, how to deal with NodeJS apps with multiple website on the

Show Detail

ERR_SSL_PROTOCOL_ERROR browser error message while running a https server in nodejs express

I have a number of nodejs applications running on Express using the code below. They all run fine using code similar to the following: fs = require 'fs' ...

Show Detail

Why is my nodejs express server connecting to the MongoDB on my local machine and the AWS EC2 Instance

I have a MongoDB running on my local machine and another MongoDB running on the AWS EC2 instance where my express server and my angularjs web app is installed. That is: On my local machine (Windows

Show Detail

facing difficulty in creating my server through nodejs express

I am a beginner in Node js and Express and I was trying to create my server following this tutorial : https://codeforgeek.com/express-nodejs-tutorial/ This is my server.js code: var express = req...

Show Detail

Nodejs Express sendStatus error

The web app uses express for the server, nodejs as the language, mongodb as the database and mongoose as the wrapper. Express is running a server at port 3000 and I'm trying to implement a basic CR...

Show Detail

Deploy nodejs express on AWS windows server

I deplyoed my nodejs application on a AWS server with windows server as OS. The application is a simple express server running on https port 443. The application is accessible through localhost, bu...

Show Detail

Express module error while listening http server in nodejs

I have created a nodejs http server var http = require("http"); var url = require("url"); var express = require('express'); var app = express(); function start(route, handle){ function on

Show Detail

Nodejs (express) running but requests not working

I run my project backend 'server.js' (express). it's working correctly and without any problem. But I send a request from Postman or another apps, I can not get any response or error. Only loading.

Show Detail

Error: Server error Google app engine with express and nodejs

Im using GAE for my nodejs express backend. It worked earlier, but suddenly I keep getting Error: Server error. The server encountered an error and could not complete your request. Please try ag...

Show Detail