I am starting to this problem sprout up on different machines across our sites. Policies are not running and are reporting this error:
There was an error.
*** -[NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]
I know how to fix it (re-enroll) but I'd like to know if anyone has any more info on why this is actually happening in the first place?
Don't know what's causing it but this does happen to the odd client on our JSS. I'm able to spot them by their Last Check-in time being far off from the Last Update time. I've seen them also not be fixed by a simple jamf enroll -prompt, i had to removeFramework and then run recon.
We've experienced this same behavior. Johanguz's steps resolved our issue, but I'm still not quite sure what's causing this in the first place. JSSConnection worked, inventory worked, manage/enroll worked. It's was pretty strange...