【问题标题】:Socket hang up exception sent by server on Orion queryContext request服务器在 Orion queryContext 请求上发送的套接字挂起异常
【发布时间】:2015-06-11 14:03:43
【问题描述】:

我正在尝试使用以下命令访问 FIWARE Orion Context Broker,但我收到此错误,由远程上下文代理发送...

curl -d '{"entities":[{"type":"","isPattern":"true","id":".*"}]}' \ -H '内容类型:应用程序/json'\ -H 'X-Auth-Token: .....'\ 'http://orion.lab.fiware.org:1026/ngsi10/queryContext?limit=5&details=on' 错误:套接字挂起 在 createHangUpError (http.js:1453:15) 在 Socket.socketOnEnd [作为 onend] (http.js:1549:23) 在 Socket.g (events.js:175:14) 在 Socket.EventEmitter.emit (events.js:117:20) 在 _stream_readable.js:910:16 在 process._tickCallback (node.js:415:13)

有人可以帮我吗?

【问题讨论】:

    标签: fiware fiware-orion


    【解决方案1】:

    这似乎与recent bug discovered in Orion 0.22.0 有关。当查询太宽时,问题似乎会发生,因此它与发送转发消息的大量注册匹配(在 orion.lab.fiware.org 上的 Orion 的情况下,该查询匹配大约 1,000 个注册)。

    我们计划尽快为此实施修补程序(并在此之后编辑此答案)。同时,我建议您使用“更窄”的查询,例如修复类型:{"entities":[{"type":"Room","isPattern":"true","id":".*"}]}.

    编辑:Orion 实例已在 orion.lab.fiware.org 中升级,现在它似乎可以工作了。但是,我无法完全使用您的卷曲线...相反,我使用的是我理解的功能等效的以下内容:

    (curl 'orion.lab.fiware.org:1026/v1/queryContext?limit=5&details=on' -s -S --header 'X-Auth-Token: ...' --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
    {
        "entities": [
            {
                "type": "",
                "isPattern": "true",
                "id": ".*"
            }
        ]
    }
    EOF
    

    【讨论】:

    • 答案已在 orion.lab.fiware.org 编辑以解释 Orion 升级后的情况
    猜你喜欢
    • 2018-01-07
    • 1970-01-01
    • 2014-04-12
    • 2020-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-21
    相关资源
    最近更新 更多