OfficeDev / skype-web-sdk-samples

Other
116 stars 76 forks source link

Unable to view the user image #20

Open meghadev opened 7 years ago

meghadev commented 7 years ago

I checked in the on premise sample code. I am getting a URL in person.avatarUrl.get().then(function(imgUrl) { console.log("IMG URL:: " + imgUrl); }); However, unable to see the user image. I am getting a 404 not found in the browser console. Also, if I copy paste this url in the browser, I get:

403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.

FYI: I am able to view the user image in my Lync Application, logged in with the same user. So, I am assuming 401 unauthorized access isn't really the root cause.

Can someone please help me in fixing it.

dougroutledge commented 7 years ago

I have this issue quite often too, either 404 or 500. What is particularly weird is for a given use, it will work 90% of the time, but then occasionally the same user will get a 404 or 500 error. I am not sure so I am just speculating, but I wonder if when the server gets under a load deemed heavy it quits serving the images for a certain period of time. I handle the error by replacing it with a default image, which is not optimal, but better than a red x.