Giter Site home page Giter Site logo

Comments (4)

brendannee avatar brendannee commented on July 20, 2024 1

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.

brendannee avatar brendannee commented on July 20, 2024

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.

swapsCAPS avatar swapsCAPS commented on July 20, 2024

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.

stepri avatar stepri commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.