-
Notifications
You must be signed in to change notification settings - Fork 6
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
Exception while invoking method 'MY_SERVER_METHOD' TypeError: Cannot read property 'collectionViews' of undefined #5
Comments
Same problem for me. |
I'm still getting the odd instance of this error, even with the latest patch. I'm using peerlibrary:reactive-publish and I suspect the error only occurs occasionally when a user either logs out or closes the tab. I might try inserting a line: var connectionData = isMeteor1_8 ? Meteor.default_server.sessions.get(connectionId) : Meteor.default_server.sessions[connectionId];
if (!connectionData) return result;
var collectionViews = isMeteor1_8 ? connectionData.collectionViews.get('users').documents.get(instance.userId) : connectionData.collectionViews.users.documents[instance.userId]; Also, the pedant in me wants to move the |
Hi, I updated meteor to 1.10.2 and this bug appears again, maybe it's because it's match to 1.8 and not gte 1.8 |
It appears that this package is abandoned. I anticipated this issue with Meteor 1.10 a year ago but PR hasn't been merged yet. You could copy my fork into your packages folder. From my fork which explains this issue:
Or you could replace it with my newer package wildhart:mergebox-cache which works on all collections, not just |
@wildhart thank you! Will try your package. |
Hey, @msavin. Thank you for the fine package!
I updated the meteor to 1.8.1 and received this error.
Inspected a little bit and what I found out:
is undefined bc
Meteor.default_server.sessions
object has been changed from{'connectionId': { Session: { collectionViews: { ... }}}}
toMap { 'connectionId' => Session { ... }}
and now we have to get the value likeAnd new method wouldn't work for previous meteor 1.8.
Hope this info will help you.
The text was updated successfully, but these errors were encountered: