ql-io / ql.io

A node.js based declarative, data-retrieval and aggregation gateway for quickly consuming HTTP APIs
http://ql.io
Other
932 stars 112 forks source link

Missing patch errors not shown in the console #417

Open s3u opened 12 years ago

s3u commented 12 years ago

Try this script int he console

create table bitly.shorten
  on insert get from "http://api.bitly.com/v3/shorten?login={^login}&apiKey={^apikey}&longUrl={^longUrl}&format={format}"
        using defaults apikey = "{config.bitly.apikey}", login = "{config.bitly.login}", format = "json"
        using patch 'bitly.js'
        resultset 'data.url'
  on select get from "http://api.bitly.com/v3/expand?login={^login}&apiKey={^apikey}&shortUrl={^shortUrl}&format={format}"
        using defaults apikey = "{config.bitly.apikey}", login = "{config.bitly.login}", format = "json"
        using patch 'bitly.js'
        resultset 'data.expand'

This should fail as bitly.js is not found. An error comes up and disappears immediately.

s3u commented 12 years ago

Also see comment by @rbdixon https://gist.github.com/2476192