无法从 Orion context Broker v2 通知到 Cepheus context broker v1
Can't notify from Orion context Broker v2 to Cepheus context broker v1
尽管将 attrsFormtat 设置为 legacy 但它不起作用,我得到缺少参数:updateAction
有什么建议吗?
谢谢。
已编辑:我尝试了一百万种方法,但我无法处理总是出现同样的错误。
我不是 Cepheus Broker 的专家,但我有一些在 FIWARE 生态系统中使用 Cepheus CEP 和 Orion Context Broker 的经验,也许我可以派上用场。
根据 CEP 的官方 documentation,您应该在 Orion Context Broker 之前而不是之后部署 Cepheus Broker。我知道两者都说相同的 NGSI API 所以应该是相同的,但我对此并不完全确定。您按此顺序部署这些组件的任何特定原因?
我使用 Cepheus Broker 和 Orion context Broker 的官方 Docker 图像做了一个小实验,通过 v1 和 v2 Orion APIs 创建上下文订阅。与 Cepheus Broker 日志中的错误相同。
然后我用this little app made by Fiware fellows, that you can use for debbuging NGSI context subscriptions. I tried with v1 and v2 subscriptions, with legacy and no legacy in v2 and any of this produces a "updateAction" field in the request. Then I realized that as far as I know, within the NGSI API methods the only service that receives the updateAction parameter is the updateContext服务证明了。
可能是 Cepheus 无法通过上下文订阅机制连接到 Orion 上下文代理。也许他正在等待上下文更新而不是上下文更改通知。
抱歉没有提供更多帮助。
此致!
您正在尝试让 Orion 向 Cepheus CEP 的 updateContext
端点发送 notifyContext
请求。这无法工作,因为根据 NGSI v1 协议,updateContext
请求应在有效负载中包含 updateAction
字段。
Cepheus CEP 期望来自订阅的通知发送到其 notifyContext
端点。
此外,Cepheus CEP 会在正确设置后向 Orion 发送自己的订阅请求(您必须在 CEP 配置中将 Orion 声明为提供商)。它会要求 Orion 将通知发送回正确的端点。
最后,您不能像您尝试的那样代表 Cepheus CEP 进行订阅:Cepheus CEP 将只接受它自己进行的订阅的通知,因为它会验证它收到的所有通知的订阅 ID。
尽管将 attrsFormtat 设置为 legacy 但它不起作用,我得到缺少参数:updateAction
有什么建议吗?
谢谢。
已编辑:我尝试了一百万种方法,但我无法处理总是出现同样的错误。
我不是 Cepheus Broker 的专家,但我有一些在 FIWARE 生态系统中使用 Cepheus CEP 和 Orion Context Broker 的经验,也许我可以派上用场。
根据 CEP 的官方 documentation,您应该在 Orion Context Broker 之前而不是之后部署 Cepheus Broker。我知道两者都说相同的 NGSI API 所以应该是相同的,但我对此并不完全确定。您按此顺序部署这些组件的任何特定原因?
我使用 Cepheus Broker 和 Orion context Broker 的官方 Docker 图像做了一个小实验,通过 v1 和 v2 Orion APIs 创建上下文订阅。与 Cepheus Broker 日志中的错误相同。
然后我用this little app made by Fiware fellows, that you can use for debbuging NGSI context subscriptions. I tried with v1 and v2 subscriptions, with legacy and no legacy in v2 and any of this produces a "updateAction" field in the request. Then I realized that as far as I know, within the NGSI API methods the only service that receives the updateAction parameter is the updateContext服务证明了。
可能是 Cepheus 无法通过上下文订阅机制连接到 Orion 上下文代理。也许他正在等待上下文更新而不是上下文更改通知。
抱歉没有提供更多帮助。
此致!
您正在尝试让 Orion 向 Cepheus CEP 的 updateContext
端点发送 notifyContext
请求。这无法工作,因为根据 NGSI v1 协议,updateContext
请求应在有效负载中包含 updateAction
字段。
Cepheus CEP 期望来自订阅的通知发送到其 notifyContext
端点。
此外,Cepheus CEP 会在正确设置后向 Orion 发送自己的订阅请求(您必须在 CEP 配置中将 Orion 声明为提供商)。它会要求 Orion 将通知发送回正确的端点。
最后,您不能像您尝试的那样代表 Cepheus CEP 进行订阅:Cepheus CEP 将只接受它自己进行的订阅的通知,因为它会验证它收到的所有通知的订阅 ID。