Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EMFILE, open 'input/people.json' #3

Open
unlight opened this issue Aug 2, 2014 · 1 comment
Open

Error: EMFILE, open 'input/people.json' #3

unlight opened this issue Aug 2, 2014 · 1 comment

Comments

@unlight
Copy link

unlight commented Aug 2, 2014

How to repeat

var fs = require("fs");
var JSONStream = require("JSONStream");
var es = require("event-stream");
var request = require("request");

// Read File
fs.createReadStream("input/people.json")
// Turn Into JSON Array String
.pipe(JSONStream.stringify())
// Replace
.pipe(es.replace("John", "Bob"))
// HTTP PUT Request
.pipe(request.put("http://nodestreams.com/output/people.html"));

@shidhincr
Copy link

Still getting the error. Is this not fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants