meteor-publish-composite: Error: Doc not found in list: reywood_publish-composite.js line 210
This error only appears in my Cucumber log, seems not to affect my app in any way and does not reference any code in my app. Meteor-publish-composite seems to be a dependency of some other package; I did not add it explicitly myself. Perhaps it is a accident waiting to happen :
Exception in queued task: Error: Doc not found in list: 7bJXeKfHTwos7Ekc8
at [object Object].addChildPub (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/reywood_publish-composite.js:210:15)
at Publication.createChildPublication (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/reywood_publish-composite.js:136:28)
at Array.forEach (native)
at Function._.each._.forEach (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/underscore.js:139:11)
at Publication._publishChildrenOf (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/reywood_publish-composite.js:134:7)
at Object.added (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/reywood_publish-composite.js:86:22)
at [object Object].observeChangesCallbacks.added (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/minimongo.js:3901:28)
at self.applyChange.added (/tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/minimongo.js:3801:44)
at /tmp/meteor-test-run49uzxg/.meteor/local/build/programs/server/packages/mongo.js:1852:30
at Array.forEach (native)
I’d like to know if I am the only one seeing this. If you need further details, I’ll be happy to oblige.
I’m running it in a Xubuntu 14.04 client guest of a KVM virtual machine. It appears exactly four times, one immediately after the other, and only during startup of my Cucumber/Velocity testing.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 22 (7 by maintainers)
@SimonSimCity done.
@StorytellerCZ I have to admit that my focus for private and business projects has shifted away from Meteor. For this reason, I won’t be able to provide any new insights without substantial effort.
@SimonSimCity @adamgins any new insight into this issue and a potential fix?
I’ve found that using the selector function reactive, it is runs (because of Tracker.autorun) too often and prevents going to the next page. By being careful with assigning to those ReactiveVars only when actually changed (see below) this is prevented.
I use this code (both server & client):
and then use <ReactiveVar>.setIfChanged(value) to make the selector only be called (autoran) when actual new values arrive.
Hope it helps!