6 Replies Latest reply on Mar 30, 2016 9:30 AM by aanjan RSS
    adityaku Apprentice

    Json error

    Hi,

     

    we are trying to get the content from the url using POSTJSON service. used the below code:

     

    var params = {

      proxyScheme: undefined /* STRING */,

      headers: undefined /* JSON */,

      ignoreSSLErrors: undefined /* BOOLEAN */,

      useNTLM: undefined /* BOOLEAN */,

      workstation: undefined /* STRING */,

      useProxy: undefined /* BOOLEAN */,

      withCookies: undefined /* BOOLEAN */,

        proxyHost: undefined /* STRING */,

      url: "https://public-api.wordpress.com/rest/v1/sites/www.davidjmcclelland.com/posts/" /* STRING */,

      content: undefined /* JSON */,

      timeout: undefined /* NUMBER */,

      proxyPort: undefined /* INTEGER */,

      password: undefined /* STRING */,

      domain: undefined /* STRING */,

      username: undefined /* STRING */

    };

     

     

    // result: JSON

    var result = Resources["ContentLoaderFunctions"].PostJSON(params);

     

    But we are getting the error while running the service.

     

    The error is given below :

     

    Error executing service

    Wrapped java.net.UnknownHostException: public-api.wordpress.com Cause: public-api.wordpress.com

     

    Thanks,

    Aditya Kumar