【问题标题】:Request to server returns a timeout对服务器的请求返回超时
【发布时间】:2013-01-03 23:20:33
【问题描述】:

我正在尝试运行以下 YQL 查询:

select * from xml where url='LinkToMyServer/PerformSomeOperationAndGetXml'

但是,我得到以下结果:

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng"
    yahoo:count="0" yahoo:created="2013-01-03T23:17:06Z" yahoo:lang="en-US">
    <diagnostics>
        <publiclyCallable>true</publiclyCallable>
        <url execution-start-time="1" execution-stop-time="4555"
            execution-time="4554" proxy="DEFAULT"><![CDATA[LinkToMyServer/PerformSomeOperationAndGetXml]]></url>
        <user-time>4555</user-time>
        <service-time>4554</service-time>
        <build-version>32943</build-version>
    </diagnostics> 
    <results/>
</query>

有什么办法可以增加超时时间吗?

谢谢!

【问题讨论】:

    标签: yql


    【解决方案1】:

    我认为没有办法增加 YQL 请求超时。我发现与此相关的唯一文档 - Paging and Table Limits - 提到了 YQL 语句的总时间限制为 30 秒,但没有具体提及请求时间。

    对于比较测试,我尝试了select * from xml where url='http://blackhole.webpagetest.org' 并得到了与您相似的结果 - YQL 超时不到 5 秒,结果集为空。

    如果您无法将服务器响应时间降至 5 秒以下,您可能需要寻找其他解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-25
      • 1970-01-01
      • 2019-09-10
      • 2020-06-26
      • 2015-01-07
      • 1970-01-01
      相关资源
      最近更新 更多