[英]Fiware and IDAS: Issue with SendObsevations.py
我是IDAS和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)似乎是錯誤的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.