We deployed a custom made application a few weeks ago where we used reputation.js for a custom rating functionality in SharePoint. Early this morning we started encountering issues with this functionality. After investigating I'm getting this error:
TypeError: this.get_pendingRequest(...).$2b_0 is not a function
at SP.ClientRuntimeContext.addQueryIdAndResultObject (sp.runtime.js:2)
at Function.Microsoft.Office.Server.ReputationModel.Reputation.setRating (Reputation.js:1)
This happens whenever I call this specific code block:
rating = Microsoft.Office.Server.ReputationModel.Reputation.setRating(ctx, listId, id , star);
It was working a few days back but suddenly stopped working without us changing anything. Were there any changes recently deployed to SharePoint Online that might have affected this?