Comments (4)
Thanks for that suggestion.
I made an update to the mongo connection timeout on import and it was able to handle importing the GTFS file you linked: https://github.com/BlinkTagInc/node-gtfs/releases/tag/0.9.10
You are right that it was in the removing of old data that it was timing out - perhaps I'll come up with a better way of doing this.
from node-gtfs.
Thanks for the report. I tried the config file and it worked with the latest version of node-gtfs 0.9.9
Try updating your global node-gtfs installation to the latest version:
npm update gtfs -g
Otherwise, it is a large GTFS file so perhaps the download is failing silently?
from node-gtfs.
Might be a large file issue indeed.
Also had some weird connection timeout issues with very large files in the import.js
removeDatabase
method.
Mongod CPU usage also stayed up to 300% after throwing the error.
Setting: { connectTimeoutMS: 0, socketTimeoutMS: 0 }
in MongoClient.connect
fixed it.
Better to just have a longer timeout probably instead of infinite.
But in the large file case, the default 30 seconds timeout MongoClient sets was not enough for some operations to complete.
from node-gtfs.
I got also this issue, tried several node.js versions. Also when using the path option in config.json I got the same error.
from node-gtfs.
Related Issues (20)
- script does not exit HOT 6
- How to find all stops times using from and to stops HOT 1
- No documentation for getFareAttributes HOT 1
- Importing multiple feeds HOT 2
- transfers.txt default transfer_type HOT 2
- Typescript Support for node-gtfs HOT 4
- Package GTFS states MongoDB, Github States MySQL HOT 3
- Cannot use multiple databases at once HOT 2
- GTFS Fares V2 HOT 1
- GTFS Fares V2 Leg rules amount HOT 4
- [Feature Request] Create option to ignore SSL validation HOT 3
- Can I use the command line for query operations? HOT 6
- GTFS-R TripDescriptor HOT 5
- Working with Docker Database locked HOT 4
- Dropping/Clearing database HOT 1
- Deployment on errors HOT 5
- Invalid default csv parser option "relax" in import script. HOT 2
- Performance improvements HOT 4
- Possible performance improvement: DuckDB HOT 3
- Changing internal maxInsertVariables has significant impact on total import time HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gtfs.