{ "id": "120801", "key": "AC-2629", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-10-08T03:06:50.000+0000", "created": "2013-10-04T12:48:51.000+0000", "labels": [ "iOS7", "yql" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "{code: JavaScript}\r\nvar query = 'select * from xml where url=\"http://news.yahoo.com/rss/topstories\"';\r\n\t\r\nTi.Yahoo.yql(query, function(e){\r\n alert(e);\r\n});\r\n{code}\r\n\r\non YQL console (http://y.ahoo.it/twEg3), the query above returns a valid response with data in it. \r\n\r\nBut on iOS simulator (64 bit), it produces an alert box which its height fills the entire simulator screen as if there's data in it. But it doesn't have anything in it. \r\n\r\nI tried different queries such as this one: \r\n{code}\r\nselect * from geo.countries where place=\"North America\"\r\n{code}\r\n\r\nThe same result occurs. The response gives back null/empty.\r\n\r\nHowever, when I try it using a query against flickr service, it works \r\n{code}\r\nselect * from flickr.photos.search where has_geo=\"true\" and text=\"san francisco\" and api_key = \"MY_API_KEY\"\r\n{code} \r\n\r\n\r\n", "attachment": [ { "id": "42960", "filename": "Screen Shot 2013-10-04 at 8.35.40 AM.png", "author": { "name": "ardiwine", "key": "ardiwine", "displayName": "Edwin Ardiwinata", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-04T12:48:51.000+0000", "size": 69023, "mimeType": "image/png" }, { "id": "42961", "filename": "Screen Shot 2013-10-04 at 8.48.17 AM.png", "author": { "name": "ardiwine", "key": "ardiwine", "displayName": "Edwin Ardiwinata", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-04T12:48:51.000+0000", "size": 139389, "mimeType": "image/png" } ], "flagged": false, "summary": "YQL returns null/empty response for XML/RSS query", "creator": { "name": "ardiwine", "key": "ardiwine", "displayName": "Edwin Ardiwinata", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "ardiwine", "key": "ardiwine", "displayName": "Edwin Ardiwinata", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium Studio, build: 3.1.3.201309132423\r\nTi 3.1.3 GA\r\niOS 7", "comment": { "comments": [ { "id": "274122", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is working. The alert is not big enough, nor have scrolling for showing the output. \r\n\r\nadd this Ti.API.info(e) to the callback:\r\n\r\n{code}\r\nvar query = 'select * from xml where url=\"http://news.yahoo.com/rss/topstories\"';\r\n \r\nTi.Yahoo.yql(query, function(e){\r\n alert(e);\r\n Ti.API.info(e);\r\n});\r\n{code}\r\n\r\nand you will see the right output in the console. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-10-08T03:06:50.000+0000", "updated": "2013-10-08T03:06:50.000+0000" }, { "id": "280995", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Invalid issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:18:35.000+0000", "updated": "2013-11-24T22:18:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }