Hi, Seems 'http://jaggeryjs.org/apidocs/resources/data.jag' resource is not available.
Thanks, Milinda On Thu, Aug 28, 2014 at 3:39 PM, Jerad Rutnam <[email protected]> wrote: > Hi, > > Tried to use Jaggery post() method. And it's not working as expected. > getting an error on the documentation try out feature. > > > *Sample* > <% > var url = 'http://jaggeryjs.org/apidocs/resources/data.jag'; > var result = post(url, 'Jaggery HTTP POST', { > "User-Agent" : "Jaggery-XHR", > "Country" : "LK" > }, 'json'); > print(result.data); > %> > > *On the local jaggery server* > *com.google.gson.JsonSyntaxException: > com.google.gson.stream.MalformedJsonException: Expected EOF at line 1 > column 27 at line #3* > > * On the "jaggeryjs.org <http://jaggeryjs.org>" **website* > *org.jaggeryjs.scriptengine.exceptions.ScriptException: > java.net.ConnectException: Connection timed out at line #3* > > *http://jaggeryjs.org/documentation.jag?api=post > <http://jaggeryjs.org/documentation.jag?api=post>* > > > Any feedback appreciate > > *Regards,* > > *Jerad* > > -- > *Jerad Rutnam | **Software Engineer - UI* > WSO2, Inc. www.wso2.com > > *Email: [email protected] <[email protected]>* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Milinda Perera Software Engineer; WSO2 Inc. http://wso2.com , Mobile: (+94) 714 115 032
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
