[Backlogmanager] [FIWARE-JIRA] (HELP-16994) [fiware-stackoverflow] Fiware IoT Agent Json refused to POST to /v2/op/update

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Mon Oct 19 08:35:00 CEST 2020


     [ https://jira.fiware.org/browse/HELP-16994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez reassigned HELP-16994:
-------------------------------------

    Assignee: Fermín Galán

> [fiware-stackoverflow] Fiware IoT Agent Json refused to POST to /v2/op/update
> -----------------------------------------------------------------------------
>
>                 Key: HELP-16994
>                 URL: https://jira.fiware.org/browse/HELP-16994
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: api, fiware, request
>
> Created question in FIWARE Q/A platform on 19-10-2020 at 01:10
> {color: red}Please, ANSWER this question AT{color} 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"
> }



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy