2012-02-13 9 views
0

私はhttp://www.teamliquid.net/video/streams/?filter=live&xml=1でAPIを使用してYQLテーブルを設定しようとしていますが、いくつか問題があります。YQLテーブルを正常に動作させるのに問題があります

<?xml version="1.0" encoding="UTF-8"?> 
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" 
    yahoo:count="0" yahoo:created="2012-02-13T22:14:48Z" yahoo:lang="en-US"> 
    <diagnostics> 
     <publiclyCallable>true</publiclyCallable> 
     <url execution-start-time="1" execution-stop-time="33" 
      execution-time="32" proxy="DEFAULT"><![CDATA[store://q5awkFLmEqteFVOTUJbQ6h]]></url> 
     <url execution-start-time="35" execution-stop-time="232" 
      execution-time="197" http-status-code="406" 
      http-status-message="Not Acceptable" proxy="DEFAULT"><![CDATA[http://www.teamliquid.net/video/streams/?xml=1&filter=live]]></url> 
     <user-time>232</user-time> 
     <service-time>258</service-time> 
     <build-version>25247</build-version> 
    </diagnostics> 
    <results/> 
</query> 

私は本当にそれが働いていない理由を把握することはできません。

<?xml version="1.0" encoding="UTF-8"?> 
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> 
    <meta> 
     <author>TL.net</author> 
     <description>TL.net's streams</description> 
     <documentationURL>none</documentationURL> 
     <sampleQuery>select * from {table}</sampleQuery> 
    </meta> 
    <bindings> 
     <select itemPath="streamlist" produces="XML"> 
      <urls> 
       <url>http://www.teamliquid.net/video/streams/?xml=1</url> 
      </urls>   
      <inputs> 
       <key id="filter" type="xs:string" paramType="query" /> 
      </inputs> 
     </select> 
    </bindings> 
</table> 

use "store://q5awkFLmEqteFVOTUJbQ6h" as tl; select * from tl where filter="live"を実行すると、次のエラーが得られます。

は、ここに私のテーブル定義です。

答えて

1

デバッグステートメントでは、YQLがソースURL:http://www.teamliquid.net/video/streams/?xml=1&filter=liveから読み取っていますが、HTTP 406 Not Acceptableエラーメッセージが返されていることがわかります。

HTTP 406は、サーバーが要求された(Acceptヘッダー)形式のいずれでも応答できない場合を対象としています。私は、この場合に適用されるのか分からないが、teamliquid.netソースは、次のように言及している:

gzip encoding is required, please also send a valid User-Agent with the name of your application/site and contact info. This page and the XML are updated every five minutes, please do not poll more frequently than every five minutes or you may risk being IP banned. If you have any questions, please PM R1CH.

私はそれが二つのものの一つだ疑い:YQLサーバがデータを要求していない

  1. gzipや圧縮形式
  2. にteamliquid.netのサーバーは、私は、同様のgzip問題を疑わYQL
+0

をブロックしている、ありがとう! – Tony

関連する問題