Estoy tratando de ejecutar un script Node.js localmente y me está dando este mensaje de error:Node.js mongodb define por defecto sea variable
======================================================================================== = Please ensure that you set the default safe variable to one of the = = allowed values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}] = = the default value is false which means the driver receives does not = = return the information of the success/error of the insert/update/remove = = = = ex: new Db(new Server('localhost', 27017), {safe:false}) = = = = http://www.mongodb.org/display/DOCS/getLastError+Command = = = = The default of false will change to true in the near future = = = = This message will disappear when the default safe is set on the driver Db = ========================================================================================
Éstos son mis variables:
var express = require('express');
var mongodb = require('mongodb');
var GridStore = require('mongodb').GridStore;
var Db = require('mongodb').Db;
var Server = require('mongodb').Server;
var db = new Db(Config.dbName, new Server("127.0.0.1", 27017, {}), {});
var HttpGet = require('./httpGet').HttpGet;
var URL = require('url');
var dbClient = null; // this is initialized when db is opened
var app = module.exports = express();
El los mismos guiones funcionan bien en mi servidor en vivo. Solo se queja cuando lo ejecuto localmente.
me encontré con este mismo asunto objeto de debate en github pero no encontraron solución. https://github.com/kissjs/node-mongoskin/issues/77
Alguien sabe lo que podría causar este problema?
Gracias de antemano :)
He tratado de que, cuando hago esto, me sale "Ejecución ERROR: (Mar Oct 11 2012 15:36:44 GMT-0400 (EDT)): {}". No me dice cuál es el error. –
@FarhanAhmad ¿Lo ha ejecutado debajo del depurador para ver qué línea está generando ese error? – JohnnyHK
Lo mismo. Es empezar a escuchar en el puerto 5858 y luego muestra "Ejecución ERROR: (Mar Oct 11 2012 15:57:08 GMT-0400 (EDT)): {}" –