Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16994

[fiware-stackoverflow] Fiware IoT Agent Json refused to POST to /v2/op/update

    Details

      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

      {IoTAgentIP:Port}

      /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" :

      { "type": "command", "value": "" }

      }
      ]
      }'

      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" :

      { "type": "command", "value": "" }

      }
      ]
      }'

      My IoT agent version is:
      {
      "libVersion": "2.12.0-next",
      "port": 4041,
      "baseRoot": "/",
      "version": "1.14.0-next"
      }

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        14d 1h 39m 1 Backlog Manager 02/Nov/20 8:45 AM
        In Progress In Progress Closed Closed
        9d 4h 6m 1 Backlog Manager 11/Nov/20 12:51 PM

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: