NicoB wrote:
I would personally suggest to refactor the $.post call and make it a bit more rubust.
$.post returns a promise so you can leverage this pattern to do something in case of success or error so that you can track what happens a bit better:
$.post('/restapi/vc/users/id/${user.id}/profiles/name/field1/set', {value: '' + arLastLoginDate})
.done(function(){
// Everything went well. Maybe you don't have anything to do here
})
.fail(function(){
//You could log the error somehow or you might want to retry..
});
Interesting! I'm definitely doing that retry once.
I am running two other $.posts more or less at the same time. Is it possible that the write attempts are too close together?