question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am running SPServices’ GetListItems from a subsite (https://something.sharepoint.com/sites/intranet/op1/) querying a document library in the root. This is my SPServices code.

$().SPServices(
{
    webUrl         : 'https://something.sharepoint.com/sites/intranet/',
    operation      : "GetListItems",
    async          : true,
    listName       : 'Documents',
    CAMLViewFields : "<ViewFields><FieldRef Name='Title' /><FieldRef Name='EncodedAbsUrl'/></ViewFields>",
    // CAMLQuery      : camlQuery,
    completefunc   : function (xData, Status)
        {
            console.log('doclib_getListItems [xData]', xData);
            console.log('doclib_getListItems [Status]', Status);
        }
});

However I am getting an error “POST https://something.sharepoint.com/sites/intranet/op1/_vti_bin/Lists.asmx 500 (Internal Server Error)”. I think it is trying to find the “Documents” list in the subsite but not in the site indicated by the webUrl. Is there a way to force SPServices to query https://something.sharepoint.com/sites/intranet/_vti_bin/Lists.asmx ?

Please note the opt1 in the subsite url.

thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dinnouticommented, Jan 6, 2017

this is what happens when one copies code from the internet without double checking. thank you, it was driving me crazy

0reactions
dinnouticommented, Jan 6, 2017

thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web URL
SiteSucker offers several ways to enter URLs in the Web URL text field, such as: You can type an address into the Web...
Read more >
WebURL | Documentation - GitHub Pages
WebURL provides support for creating and interpreting URLs according to the latest industry standard. The API is more expressive than Swift's current URL ......
Read more >
What is a URL? - Learn web development | MDN
URL stands for Uniform Resource Locator. A URL is nothing more than the address of a given unique resource on the Web. In...
Read more >
Announcing WebURL - a new URL type for Swift
WebURL is a brand-new URL library. It is written entirely in Swift, implements the latest URL standard, and has a great API designed...
Read more >
webURL - Documentation - Apple Developer
webURL. A link to the Shazam Music catalog page that contains the full information for the song. iOS 15.0+ iPadOS 15.0+ macOS 12.0+...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found