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 read property 'interoperability' of undefined #52

Open
berezovskyi opened this issue Nov 5, 2016 · 2 comments
Open

Comments

@berezovskyi
Copy link

Trace:

500 TypeError: Cannot read property 'interoperability' of undefined
at /Users/andrew/code/sparqles/node/app.js:46:63
at /Users/andrew/code/sparqles/node/mongodbprovider.js:157:19
at /Users/andrew/code/sparqles/node/mongodbprovider.js:16:17
at Db.collection (/Users/andrew/code/sparqles/node/node_modules/mongodb/lib/mongodb/db.js:534:27)
at MongoDBProvider.getCollection (/Users/andrew/code/sparqles/node/mongodbprovider.js:15:11)
at MongoDBProvider.getAMonths (/Users/andrew/code/sparqles/node/mongodbprovider.js:156:10)
at /Users/andrew/code/sparqles/node/app.js:44:27
at /Users/andrew/code/sparqles/node/mongodbprovider.js:144:19
at /Users/andrew/code/sparqles/node/mongodbprovider.js:16:17
at Db.collection (/Users/andrew/code/sparqles/node/node_modules/mongodb/lib/mongodb/db.js:534:27)

Versions:

  • commit 69b017a
  • mongo 3.2.10
  • node 7.0.0
  • yarn instead of npm, but it shouldn't matter.
@berezovskyi
Copy link
Author

After initialising the database, there is a record in the index collection and only one (as MongoDBProvider.prototype.getIndex is requesting).

screen shot 2016-11-05 at 20 40 19

@berezovskyi
Copy link
Author

I managed to resolve that particular error by switching the mongo driver from 1.4.x to 2.0.x (given that I have mongodb 3.2.10), but there are more errors. I will make a PR for the fixed I made.

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

Successfully merging a pull request may close this issue.

1 participant