一些提示,以调查发生了什么:
- 您应该使用Python2.7来运行这些脚本。您能否让我知道您使用的是哪个版本和操作系统?
- 上周我们更新了FIGWAY。如果你之前做过,你能否再次克隆它?
- 你应该使用新的脚本在文件夹:/蟒蛇-IDAS4/ContextBroker
与以前的假设,你应该得到这样的事情(只要该实体不上ContextBroker当时存在正在):
[email protected] ~/github/fiware-figway/python-IDAS4/ContextBroker $ python GetEntity.py Room
* Asking to http://130.206.80.40:1026/ngsi10/queryContext
* Headers: {'Fiware-Service': 'OpenIoT', 'content-type': 'application/json', 'accept': 'application/json', 'X-Auth-Token': 'NULL'}
* Sending PAYLOAD:
{
"entities": [
{
"type": "",
"id": "Room",
"isPattern": "false"
}
],
"attributes": []
}
...
* Status Code: 200
* Response:
{
"errorCode" : {
"code" : "404",
"reasonPhrase" : "No context element found"
}
}
你有配置文件的所有必填字段正确填写?它位于python-IDAS4文件夹中。 – LeandroGuillen