I want to make Node.js handler how can I do it?

@HerrWinfried, The error is pointing to the NodeJS module mongodb.js . First, check the following statement: var mongoDB = require("../mongodb.js"); Next, check your code in the mongodb.js module. You can use my code or any online examples for comparison.