-
Notifications
You must be signed in to change notification settings - Fork 47
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
Too many open files.... Is it possible to increase the chunk size from 100 to say... 1000? #42
Comments
In index.js, you can try and replace every instance of '100' with '1000'. This should break up the features by chunks of 1000 instead of 100. |
When I change the 100 to another number like 500 or 1000 in the index.js file, I get the following error. The REST services indicates one can get 1000 records at a time. Any suggestion for a fix? Thanks Number of features for service Parcels: 239469 Error: Invalid JSON (Unexpected "!" at position 1 in state STOP) |
@bkaplan1 Same for me:
|
Has anyone found a workaround to this error? |
Try a smaller chunk size. I had this same problem, and changed it from 100 to 200 and was able to retrieve from my endpoint. |
Okay, bumping this issue for those on the thread: did anyone figure out the solution here? |
And...I'm endorsing @mgottholsen's solution — 250 was the magic number for me. Thinking this issue is closed. |
Number of features for service parcels: 1562692
Getting chunks of 100 features, will make 15627 total requests
events.js:183
throw er; // Unhandled 'error' event
Error: EMFILE: too many open files, open 'c:\Users{user}\Desktop\AGStoShapefile\shapefiles\parcels\partials\8190.json'
The text was updated successfully, but these errors were encountered: