Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
Description
Created question in FIWARE Q/A platform on 19-10-2020 at 01:10
Please, ANSWER this question AT https://stackoverflow.com/questions/64419174/fiware-iot-agent-json-refused-to-post-to-v2-op-update
Question:
Fiware IoT Agent Json refused to POST to /v2/op/update
Description:
I am interested in fiware IoT Agent JSON, and i tried to work things out.
I've mange to install the IoT Agent JSON using this tutorial.
The tutorial refers about IoT Actuator Connection and to check the connection we have to POST to
/v2/op/update.
When I post to this endpoint I get:
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /v2/op/update</pre>
</body>
</html>
My Post Command Is:
curl -iX POST \
http://localhost:4041/v2/op/update \
-H 'Content-Type: application/json' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' \
-d '{
"actionType": "update",
"entities": [
{
"type": "Alarm",
"id": "urn:ngsi-ld:Alarm:001",
"ring" :
}
]
}'
And
curl -iX POST \
http://localhost:4041/v2/op/update \
-H 'Content-Type: application/json' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' \
-d '{
"actionType": "update",
"entities": [
{
"type": "Bell",
"id": "urn:ngsi-ld:Bell:001",
"ring" :
}
]
}'
My IoT agent version is:
{
"libVersion": "2.12.0-next",
"port": 4041,
"baseRoot": "/",
"version": "1.14.0-next"
}
2020-10-19 08:05|CREATED monitor | # answers= 0, accepted answer= False