imthenachoman / nSPTiles

Windows style tiles for SharePoint
http://nsptiles.js.org
MIT License
11 stars 5 forks source link

_vti_bin/Lists.asmx?op=GetListItems 401 (Unauthorized) #6

Closed essineden closed 7 years ago

essineden commented 7 years ago

I am unable to use the CEWP after using the code. Is there some sort of configuration on the admin/server side before I can use it? I was able to use SPJS Tiles with the same procedure and site.

Thank you in advance


I noticed that the siteURL is getting the wrong URL for it since it's a subsite. I changed the tilesTracker[holderID].siteURL to the correct one and it worked. I just hope it doesn't affect other rendering codes.

imthenachoman commented 7 years ago

@essineden Where did you see that the siteURL is getting the wrong URL? And can you tell me more about your setup so I can try to recreate the bug?

essineden commented 7 years ago

@imthenachoman hi, the variable I changed was tilesTracker[holderID].siteURL. the subsite is under the structure http://webapp:XXXX/sites/subsite. the port number is not being recognized and the error 401 is showing because it's pointing to http://webapp/sites/subsites only which is a different web application. I hope that helps.

imthenachoman commented 7 years ago

@essineden Yes, that helps a lot. Thank you! My code does not take into account the port #. I will fix that in the next release. Thank you!

essineden commented 7 years ago

Awesome! looking forward to that update :+1:

imthenachoman commented 7 years ago

fixed in 1.51