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

TypeError: Cannot call method 'collection' of null #23

Closed
tobiasgemperli opened this issue Jan 13, 2015 · 2 comments
Closed

TypeError: Cannot call method 'collection' of null #23

tobiasgemperli opened this issue Jan 13, 2015 · 2 comments

Comments

@tobiasgemperli
Copy link

I followed the tutorial and got an error in this line:

node ./scripts/download
Starting caltrain
caltrain: Download successful

/Users/myself/Dropbox/Projekte/Departures/node-gtfs/scripts/download.js:193
db.collection(GTFSFile.collection, function(e, collection){
^
TypeError: Cannot call method 'collection' of null
at /Users/myself/Dropbox/Projekte/Departures/node-gtfs/scripts/download.js:193:12

Any help is appreciated.

@tobiasgemperli
Copy link
Author

The MongoDB was missing

@brendannee
Copy link
Member

I updated the readme to include this step. Feel free to add more details to the readme if there is other information that would be useful>

4f14ee1

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