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

Using Meteor toys pro along Redis-oplog #94

Open
Fen747 opened this issue Feb 16, 2017 · 8 comments
Open

Using Meteor toys pro along Redis-oplog #94

Fen747 opened this issue Feb 16, 2017 · 8 comments

Comments

@Fen747
Copy link

Fen747 commented Feb 16, 2017

Using redis-oplog in the same project than meteor toys Pro, after I did a meteor update from 1.4.2.3 to 1.4.2.7 (and almost all the packages in my app), I now get this when I start my app :

Exception while invoking method 'MeteorToys_impersonate_account' { stack: 'TypeError: Cannot read property \'find\' of undefined\n    at module.export.exports.default (packages/cultofcoders:redis-oplog/lib/processors/actions/requery.js:14:22)\n    at handleRemove (packages/cultofcoders:redis-oplog/lib/processors/limit-sort.js:72:9)\n    at module.export.exports.default (packages/cultofcoders:redis-oplog/lib/processors/limit-sort.js:20:13)\n    at RedisSubscriber.processSync (packages/cultofcoders:redis-oplog/lib/redis/RedisSubscriber.js:65:9)\n    at packages/cultofcoders:redis-oplog/lib/mongo/lib/compensateForLatency.js:19:28\n    at Array.forEach (native)\n    at packages/cultofcoders:redis-oplog/lib/mongo/lib/compensateForLatency.js:18:25\n    at Array.forEach (native)\n    at module.export.exports.default (packages/cultofcoders:redis-oplog/lib/mongo/lib/compensateForLatency.js:13:14)\n    at packages/cultofcoders:redis-oplog/lib/mongo/lib/dispatchers.js:36:9',
I20170216-13:00:38.373(1)?   source: 'method' }

versions file before the update (1.4.2.3) : http://pastebin.com/CR9MxWhC
versions file after the update (1.4.2.7) : http://pastebin.com/8vuKXyHM

@msavin
Copy link
Contributor

msavin commented Feb 16, 2017 via email

@Fen747
Copy link
Author

Fen747 commented Feb 16, 2017

Yes it works well when I remove redis-oplog.

@msavin
Copy link
Contributor

msavin commented Feb 19, 2017 via email

@theodorDiaconu
Copy link

Interesting bug. Will look into it.

@theodorDiaconu
Copy link

@msavin I think I may be on to something, give me a bit of insight of what kind of collections meteor toy uses ? Are they local collections ?

@msavin
Copy link
Contributor

msavin commented Mar 21, 2017

@Fen747 hey man- there is a new version that had big changes- maybe it makes difference?

@theodorDiaconu ah, MT is using this package, which may be problem?
https://github.com/dburles/mongo-collection-instances

@theodorDiaconu
Copy link

@msavin most likely yes, the reason was that meteortoys needs to be added after redis-oplog.

@msavin
Copy link
Contributor

msavin commented Jun 14, 2017

@Fen747 hey man - did @theodorDiaconu recommendation help you get back into using Meteor Toys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants