[AC-739] Error(s)_during_evalutaion
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-05-06T18:17:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, httpclient |
Reporter | Ivana Miserda |
Assignee | Ritu Agrawal |
Created | 2014-05-06T15:46:49.000+0000 |
Updated | 2016-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();
Figured out the problem, my computer was in lack of RAM
Great. Glad to know that things are working for you now. Do you want us to resolve the issue then?
Yep, how do i do that?
[~sparrrkli] Thanks! We can close the ticket.