Fiware 和 IDAS:SendObsevations.py 问题
Fiware and IDAS: Issue with SendObsevations.py
我对 IDAS y Fiware 很陌生。我正在使用 Figway (https://github.com/telefonicaid/fiware-figway),当我尝试使用此命令发送观察结果时遇到问题:
python SendObservation.py sensor001x 't|23'
这是回复:
* Asking to http://130.206.80.43:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=sensor001x
* Headers: {'Fiware-Service': 'OpenIoT', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-Token': 'NULL'}
* Sending PAYLOAD:
t|23
...
* Status Code: 400
* Response:
{"name":"UNSUPPORTED_TYPE","message":"The request content didn't have the expected type [text/plain ]"}
你能帮我吗?我哪里错了?我正在使用 RaspberryPi。
非常感谢。
不确定这是否与问题的原因有关,但使用 Content-Type: application/json
而实际负载不是 JSON(它是 t|23
,据我所知对应到 text/plain) 似乎是错误的。
我对 IDAS y Fiware 很陌生。我正在使用 Figway (https://github.com/telefonicaid/fiware-figway),当我尝试使用此命令发送观察结果时遇到问题:
python SendObservation.py sensor001x 't|23'
这是回复:
* Asking to http://130.206.80.43:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=sensor001x
* Headers: {'Fiware-Service': 'OpenIoT', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-Token': 'NULL'}
* Sending PAYLOAD:
t|23
...
* Status Code: 400
* Response:
{"name":"UNSUPPORTED_TYPE","message":"The request content didn't have the expected type [text/plain ]"}
你能帮我吗?我哪里错了?我正在使用 RaspberryPi。
非常感谢。
不确定这是否与问题的原因有关,但使用 Content-Type: application/json
而实际负载不是 JSON(它是 t|23
,据我所知对应到 text/plain) 似乎是错误的。