Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2629] YQL returns null/empty response for XML/RSS query

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-10-08T03:06:50.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsiOS7, yql
ReporterEdwin Ardiwinata
AssigneeMauro Parra-Miranda
Created2013-10-04T12:48:51.000+0000
Updated2016-03-08T07:41:43.000+0000

Description

var query = 'select * from xml where url="http://news.yahoo.com/rss/topstories"';
	
Ti.Yahoo.yql(query, function(e){
  alert(e);
});
on YQL console (http://y.ahoo.it/twEg3), the query above returns a valid response with data in it. But 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. I tried different queries such as this one:
select * from geo.countries where place="North America"
The same result occurs. The response gives back null/empty. However, when I try it using a query against flickr service, it works
select * from flickr.photos.search where has_geo="true" and text="san francisco" and api_key = "MY_API_KEY"

Attachments

FileDateSize
Screen Shot 2013-10-04 at 8.35.40 AM.png2013-10-04T12:48:51.000+000069023
Screen Shot 2013-10-04 at 8.48.17 AM.png2013-10-04T12:48:51.000+0000139389

Comments

  1. Mauro Parra-Miranda 2013-10-08

    This is working. The alert is not big enough, nor have scrolling for showing the output. add this Ti.API.info(e) to the callback:
       var query = 'select * from xml where url="http://news.yahoo.com/rss/topstories"';
            
       Ti.Yahoo.yql(query, function(e){
         alert(e);
         Ti.API.info(e);
       });
       
    and you will see the right output in the console.
  2. Mauro Parra-Miranda 2013-11-24

    Invalid issue.

JSON Source