koltyakov / sp-rest-proxy

🌐 SharePoint API Proxy for local development
MIT License
170 stars 43 forks source link

Receiving 404 when trying to connect for Get method #119

Closed georgj42 closed 3 years ago

georgj42 commented 3 years ago

Receiving 404 when trying to connect for Get method.

Seems like Authentication problem. But not sure how to handle.

Error received in the cmd

GET (generic): https://xyz.sharepoint.com/sites/MNPDev/ Error TypeError: Cannot read property 'firstChild' of undefined at config_1.request.post.then.xmlResponse (D:\Development\Old code\30-11-2020\MNPDev\node_modules\node-sp-auth\lib\src\utils\AdfsHelper.js:29:69) at process._tickCallback (internal/process/next_tick.js:68:7)

image

koltyakov commented 3 years ago

It's authentication. And from a username I can say an external account is used. External accounts authentication is not supported by authentication library.

georgj42 commented 3 years ago

What is the alternative here ?

koltyakov commented 3 years ago

These options:

To simplify and separate auth related things I'd suggest https://github.com/koltyakov/node-sp-auth-troubleshoot for troubleshooting - it's quicker to check different options and see exact error messages.

The auth related aspects depends on https://github.com/s-KaiNet/node-sp-auth

koltyakov commented 3 years ago

Going to close this one and not library related.