This project has moved and is read-only. For the latest updates, please go here.

SPServices 401 Unauthorized Issue

Jul 25, 2013 at 6:20 PM

I am having an issue with SPService GetlistItems call at client side button click. It is working fine in my local environment and responding in less than 40ms but when i deploy the solution to live it is taking above 400ms in responding and first it is showing 401 unauthorized in console and in NET panel of Firebug after 400ms it is showing 200 Ok status. Though users are privileged with respected operation, I don't know why this is happening. I have did so many research on this issue but i couldn't find anything. Please help me.

Jul 25, 2013 at 6:26 PM
This is undoubtedly caused by your infrastructure. Many times production environments require several hops to get to the content, perhaps through an F5 or similar box. This can introduce multiple authentication challenges and cause what you are seeing. My guess is that you see this sort of difference on all page loads in production and not just with SPServices calls.