Forums

XML-RPC Limitation (6 posts)

  1. superdooperwopper
    Member
    Posted 1 year ago #

    Hello,

    anyone able to tell me how to change the WP XML-RPC restrictions?

    As soon as I fetch more than 100 posts via Windows Live Writer
    I get the error: "The response to the metaWeblog.getRecentPosts method received from the blog server was invalid:Invalid response document returned from XmlRpc server". Same error message in other Blog editors as well.

    Fetching less than 100 works fine but I have thousands of posts.

  2. Joseph Scott
    Member
    Posted 1 year ago #

    Did you look at the raw XML or the WLW logs to see exactly what the error in the response was?

  3. superdooperwopper
    Member
    Posted 1 year ago #

    Here's the WLW log:

    WindowsLiveWriter,1.7324,None,00012,17-Jul-2010 15:03:25.228,"Exception parsing XML-RPC response:
    
    WindowsLive.Writer.CoreServices.XmlRpcClientInvalidResponseException: Invalid response document returned from XmlRpc server ---> System.Xml.XmlException: Root element is missing.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
       at System.Xml.XmlDocument.Load(XmlReader reader)
       at System.Xml.XmlDocument.LoadXml(String xml)
       at WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText)
       --- End of inner exception stack trace ---
       at WindowsLive.Writer.CoreServices.XmlRpcMethodResponse..ctor(String responseText)
       at WindowsLive.Writer.CoreServices.XmlRpcClient.CallMethod(String methodName, XmlRpcValue[] parameters)
    
    ",""
    WindowsLiveWriter,1.7324,None,00013,17-Jul-2010 15:03:25.337,"DisplayableException occurred: WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Invalid Server Response - The response to the metaWeblog.getRecentPosts method received from the blog server was invalid:
    
    Invalid response document returned from XmlRpc server
       at WindowsLive.Writer.BlogClient.Clients.XmlRpcBlogClient.CallMethod(String methodName, XmlRpcValue[] parameters)
       at WindowsLive.Writer.BlogClient.Clients.MetaweblogClient.GetRecentPosts(String blogId, Int32 maxPosts, Boolean includeCategories)
       at WindowsLive.Writer.BlogClient.Blog.GetRecentPosts(Int32 maxPosts, Boolean includeCategories)
       at WindowsLive.Writer.PostEditor.RemoteWeblogBlogPostSource.GetPosts(RecentPostRequest request, Boolean getPages)
       at WindowsLive.Writer.PostEditor.RemoteWeblogBlogPostSource.GetRecentPosts(RecentPostRequest request)
       at WindowsLive.Writer.PostEditor.OpenPost.BlogPostListBox.GetRecentPostsAsyncOperation.DoWork()
       at WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart()",""

    "Root element is missing" doesn't help me at all -.-

  4. Joseph Scott
    Member
    Posted 1 year ago #

    You'll likely have to look at the raw XML then, I'd start at the bottom.

  5. superdooperwopper
    Member
    Posted 1 year ago #

    Thanks, Joseph!

    Found the "solution"

    http://windowslivehelp.com/solution.aspx?solutionid=5458df62-099c-46c4-8c63-6494fe50741c says:

    This issue is caused because by default the WordPress XML-RPC has a file size limit for images. If the image size is too large for the XML-RPC to process then it will throw the above exception :-(

    Would have been better if there's a way just to fetch the text content without any images.

  6. Joseph Scott
    Member
    Posted 1 year ago #

    It isn't clear if that is the same problem, but I suspect if you look at the raw XML response and your web server/PHP error logs you will find more details on exactly what happened.

    PHP does impose specific size and memory requirements (to keep individual requests from crushing the server), which you may be running into.

Topic Closed

This topic has been closed to new replies.

About this Topic