Get getting this error on my SP2013 SharePoint Hosted app...randomly...I can just refresh the page and the error resolves itself.
Anyone had this?
Using developer tools the error seems to be connected to the following line.
context = SP.ClientContext.get_current();
web = context.get_web();
userName = web.get_currentUser();
userName.retrieve();
context.load(web, 'EffectiveBasePermissions');
sharePointReady();
// Get the logged in users GH Records
readGhrecords();
context.executeQueryAsync(function () {
// Success returned from executeQueryAsync
if (web.get_effectiveBasePermissions().has(SP.PermissionKind.manageWeb)) {
hideAllPanels();
initializePeoplePicker('peoplePickerDiv');
$('#adminMenu').fadeIn(500, null);
}
else {
user = userName.get_title();
$('#adminMenu').hide();
}
user = userName.get_title();
},
Sorry I should have displayed all of the code...it does work but intermittently i get the above error...
S