Titanium JIRA Archive
Appcelerator Community (AC)

[AC-739] Error(s)_during_evalutaion

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-05-06T18:17:32.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, httpclient
ReporterIvana Miserda
AssigneeRitu Agrawal
Created2014-05-06T15:46:49.000+0000
Updated2016-03-08T07:37:00.000+0000

Description

So i am making a Titanium app for android. i want to get reponse text from the http request, but while debugging, my httpClient variable's value is error(s)_during_the_evaluation and it just breaks. I know the url is ok cause i ran it in Postman (rest client) and gives back True. this is my code
var url = "http://192.168.101.122:89/miserda/matija/1234"; 
 var httpCLient = Ti.Network.createHTTPClient({
 timeout : 5000, 
onerror : function (e) {     
Ti.API.error ("ERROR " + e.error); },  
onload: function() {     
var text = this.responseText;     
var lab = Ti.UI.createLabel();    
 lab.text=text;     
Ti.UI.currentWindow.add(lab);   } });
 httpCLient.open("GET", url);
 httpCLient.send();

Comments

  1. Ivana Miserda 2014-05-06

    Figured out the problem, my computer was in lack of RAM
  2. Ritu Agrawal 2014-05-06

    Great. Glad to know that things are working for you now. Do you want us to resolve the issue then?
  3. Ivana Miserda 2014-05-06

    Yep, how do i do that?
  4. Ritu Agrawal 2014-05-06

    [~sparrrkli] Thanks! We can close the ticket.

JSON Source