I am building SharePoint add-in on Office 365 based on angular JS. I followed another article here to try and read documents from a folder in a document library from the HostWeb.

here is the URL being created for the Get request


and here is the response

Object { data: "", status: 404, headers: headersGetter/<(), config: Object, statusText: "Not Found" }

now I have gone over it several times and that should be OK so to check I used RESTClient in safari to do some testing and it works!

Why Do I get error 404 with Not Found in my app? Whats Not Found?


I did some more investigating and copied a working header, then posted its url side by side and found it almost immediately, should stand out!


leading / is not supposed to be there :|- Hope that helps someone.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.