0
votes
0answers
4 views

express.js and soap calls

I am using express.js, node.js and node-soap.js and I am getting an error I can not fix. I have the following code which fails with an exception and I can not see anything in the exception. var soap ...
0
votes
0answers
9 views

findByIdAndUpdate $set does not check for unique?

I have a schema and specify login is unique is true. When I use findByIdAndUpdate and pass query $set to update an user object, it did throw back error when login is dup. Does anyone know why and how ...
0
votes
2answers
33 views

Minify Javascript programmatically in-memory

I am building a nifty little "asset-pipeline" for a express.js application, but i have a problem with the compression-step for javascript files scripts = (fs.readFileSync(file) for file in filelist) ...
0
votes
1answer
24 views

Download a file from a Http NodeJS server

I am developing a nodejs application in which I have a http server who responds to incoming POST commands. I do need to return an entire binary file. I can do it by using response.end(file, 'binary); ...
5
votes
0answers
59 views

Node.js 'undefined' variable when passed to function

I am using the 'clouddns' module to import ~800 domain names into a Rackspace account. I keep getting an error saying the following TypeError: Cannot call method 'forEach' of undefined at ...
-1
votes
0answers
8 views

There a somebody best way treat an error on generator of Yeoman?

There a somebody best way treat an error on generator of Yeoman? Because sometimes occurs errors, but don't display where occurred specifically.
0
votes
1answer
34 views

Get all strings between two patterns in Node.js

On my node.js server, I have a string, which contains html (unescaped) and a few (not only one, but more) img tags with base64 src and I need to get all base64 strings in an array from it and than ...
0
votes
0answers
16 views

Node redis publisher consuming too much memory

I wrote a small redis publisher in node by using node_redis library. After the program is done publishing 1M messages, it continues to hold up around 350 MB of memory. Can anyone provide any clues why ...
0
votes
0answers
11 views

How to render the HAML template with haml.js in Express

I need to render HAML templates in my Node.js/Express application. I tried to configure haml.js as views renderer: haml = require('hamljs') ... app.set('view engine', 'hamljs') app.engine('.haml', ...
0
votes
0answers
34 views

Node.js Mongoose nothing happens

I am trying to connect to my mongodb database, but it doesn't work : it doesn't run the callback, and no error is thrown : var config = require('./config'); var mongoose = require('mongoose'); var ...
0
votes
1answer
14 views

google api + node.js + google-api-nodejs-client

I feel like I should be able to figure this out but I'm stuck on the syntax for google api calls in node using google-api-nodejs-client. Here is my code to query for books that accepts a search ...
0
votes
1answer
31 views

Node.js cannot read property field of undefined

sendMail: function(req, res, next){ //works console.log(req.body.account); //not working var name = req.body.account.name; }; I am running express.js on my node server and I try to ...
0
votes
2answers
24 views

Node.js get json post data

I use express.js on my server. From my client I try to: $http.post("url/send", angular.toJson( { uploads: uploads, desc: desc } )); On the server I want to read this data: ...
0
votes
1answer
34 views

Dynamic values in javascript - Node.js

In node.js i am sending the values to html through render('/abc', mydata) "mydata" contains json_encoded format. And i am reading this as : {{=mydata}} Now, in the same html page i have ...
0
votes
1answer
26 views

CoffeeScript with Node.js not working with classes

I've a person.coffee file that contains the following code class Person constructor: (@name) -> talk: -> "hello" module.exports = Person Now I am trying to use it in app.js Person ...

15 30 50 per page