0

Strange sample query: [object Object]

I have created my own YQL table for the World Bank Finance API.

How I get a strange error in the YQL console:
When I load my .env file and the click on my table name wb.finance then [object Object] appears as my YQL statement.

I also see an error message:
Syntax error(s) [line 1:0 no viable alternative at character '[',line 1:14 no viable alternative at character ']']>

I cannot see anything wrong with my table and it actually does work, when I enter the YQL query directly:
SELECT * FROM wb.finance

This is the link to the YQL console with my .env loaded. Make sure to use https because that's what the API requires:
https://developer.yahoo.com/yql/console/?env=https://raw.github.com/spier/yql-tables/worldbank/alltables_forked.env#h=%5Bobject%20Object%5D

Any idea where this  [object Object] is coming from? Seems to be more a YQL Console UI issue than an issue with the YQL table.

1 Reply
  • I already got an answer to this one.<br><br>It really is a bug in the YQL Console. It happens when the table definition provides more than 1 &lt;sampleQuery&gt; element.
    0

Recent Posts

in YQL