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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          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: