httpclient - Titanium App Crash With a Simple Get Request - Uncaught TypeError -


i trying fetch data simple request using titanium.network.httpclient

here code

 var url = "http://www.appcelerator.com"; //here have api url, have tried replacing url google.com  var client = ti.network.createhttpclient({      // function called when response data available      onload : function(e) {          ti.api.info("received text: " + this.responsetext);          alert('success');      },      // function called when error occurs, including timeout      onerror : function(e) {          ti.api.debug(e.error);          alert('error');      },      timeout : 5000  // in milliseconds  });  // prepare connection.  client.open("get", url);  // send request.  client.send(); 

but app crashing error uncaught typeerror: cannot read property 'extendmodel' of undefined, not using model, new project above mentioned code, nothing more.

here screenshot of error

error screenshot

please help!

edit configuration details:

  • titanium command-line interface, cli version 5.0.13

  • titanium sdk version 6.0.4.ga

  • node version v4.8.2

please let me know if further details required,


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -