_publishCursor and "update failed: Method not found"

simple advice than, replicate it in meteorpad.
I still feel like you are doing something wrong on client, or there is some package trying to touch things it should not.
This does not sounds like our standard behaviour.

Since I use Angular-Meteor, I could not build a copy of my code in Meteorpad.

Today, I found the piece of code which produced the error:

$scope.publishedArticle = $scope.$meteorObject(PublishedArticleMetadata, {
    spaceId: $scope.article.spaceId,
    urlId: $scope.article.urlId
});

It uses the client-only collection PublishedArticleMetadata which is fed by the server/client collection PublishedArticles. Even though I did never change $scope.publishedArticle from within my client code (it is in read-only use), I got the update failed: Method not found error.

However, if I change it to

$scope.publishedArticle = $scope.$meteorObject(PublishedArticleMetadata, {
    spaceId: $scope.article.spaceId,
    urlId: $scope.article.urlId
}, false);

(autoclientsave off), the error message is gone.

Any advice how I could speed up a suchlike debug process is appreciated: I discovered the relation between the error message and the piece of code which triggers its occurrence by commenting blocks of code, which took me a lot of time.

1 Like