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

        Hide
        backlogmanager Backlog Manager added a comment -

        2020-10-19 08:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-10-19 08:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-11-02 08:45|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2020-11-02 08:45|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-11-11 12:51|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2020-11-11 12:51|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          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: