luqmaan / Instabus

:bus::dash: There is no need to bus upset
http://instabus.org
GNU General Public License v3.0
74 stars 13 forks source link

YQL isn't working #29

Closed luqmaan closed 10 years ago

luqmaan commented 10 years ago

Started today.

Getting empty responses:

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2014-07-01T14:13:46Z" yahoo:lang="en-US"><results/></query><!-- total: 5081 -->
<!-- engine1.yql.ne1.yahoo.com -->
luqmaan commented 10 years ago

Happened again:

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2014-07-03T14:06:47Z" yahoo:lang="en-US"><results/></query><!-- total: 5114 -->
<!-- engine2.yql.ne1.yahoo.com -->
Access-Control-Allow-Origin:*
Age:5
Cache-Control:no-cache
Connection:keep-alive
Content-Type:text/xml;charset=utf-8
Date:Thu, 03 Jul 2014 14:06:47 GMT
Server:ATS
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-YQL-Host:engine2.yql.ne1.yahoo.com
luqmaan commented 10 years ago

And its working again.

luqmaan commented 10 years ago
<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2014-07-08T15:32:57Z" yahoo:lang="en-US"><results/></query><!-- total: 5007 -->
<!-- engine7.yql.bf1.yahoo.com -->
Remote Address:98.137.200.255:80
Request URL:http://query.yahooapis.com/v1/public/yql?q=select+*+from+xml+where+url%3D%22http%3A%2F%2Fwww.capmetro.org%2Fplanner%2Fs_service.asp%3Foutput%3Dxml%26opt%3D2%26tool%3DSI%26route%3D801%26stopid%3D2606%22&format=xml
Request Method:GET
Status Code:200 OK

Request Headers

Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Host:query.yahooapis.com
Origin:http://luqmaan.com
Pragma:no-cache
Referer:http://luqmaan.com/GhettoRappid/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Query String Parameters

q:select * from xml where url="http://www.capmetro.org/planner/s_service.asp?output=xml&opt=2&tool=SI&route=801&stopid=2606"
format:xml

Response Headers

Access-Control-Allow-Origin:*
Age:5
Cache-Control:no-cache
Connection:keep-alive
Content-Type:text/xml;charset=utf-8
Date:Tue, 08 Jul 2014 15:32:57 GMT
Server:ATS
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-YQL-Host:engine7.yql.bf1.yahoo.com
luqmaan commented 10 years ago

We should probably show a retry again in a few seconds message to the user when this happens.

luqmaan commented 10 years ago

Just as a note, we're still seeing this happen.

luqmaan commented 10 years ago

There is nothing we can do about this. CapMetro is releasing an actual API at the end of the year. Hopefully it wont have this issue.