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

[fiware-stackoverflow] Method Not Allowed when patching registration

    Details

      Description

      Created question in FIWARE Q/A platform on 04-09-2019 at 10:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/57784735/method-not-allowed-when-patching-registration

      Question:
      Method Not Allowed when patching registration

      Description:
      Recently some registrations of commands expired so I am trying to patch their "expires" attribute. However, I receive a 405 method not allowed message error.

      Retrieving info about the registration:

      curl -X GET \
      http://localhost:1026/v2/registrations/5d3ff3e2ab1e270d7775a7bf \
      -H 'Accept: application/json'

      {
      "id": "5d3ff3e2ab1e270d7775a7bf",
      "expires": "2019-08-29T07:38:10.00Z",
      "dataProvided": {
      "entities": [

      { "id": "urn:ngsi-ld:ActuatorScreenshot:001", "type": "Actuator" }

      ],
      "attrs": [
      "Screen"
      ]
      },
      "provider": {
      "http":

      { "url": "http://localhost:4041" }

      ,
      "supportedForwardingMode": "all",
      "legacyForwarding": true
      },
      "status": "active"
      }

      I attempted following the example from http://telefonicaid.github.io/fiware-orion/api/v2/stable/:

      curl -X PATCH \
      http://localhost:1026/v2/registrations/5d3ff3e2ab1e270d7775a7bf \
      -d '

      { "expires":"2040-10-04T00:00:00" }

      '

      But as I said I got the error message:
      405 Method Not Allowed

      Feel free to ask for more info.

        Activity

        backlogmanager Backlog Manager created issue -
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 04-09-2019 at 10:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57784735/method-not-allowed-when-patching-registration


        +Question:+
        Method Not Allowed when patching registration

        +Description:+
        Recently some registrations of commands expired so I am trying to patch their "expires" attribute. However, I receive a 405 method not allowed message error.

        Retrieving info about the registration:

        curl -X GET \
        http://localhost:1026/v2/registrations/5d3ff3e2ab1e270d7775a7bf \
        -H 'Accept: application/json'


        {
            "id": "5d3ff3e2ab1e270d7775a7bf",
            "expires": "2019-08-29T07:38:10.00Z",
            "dataProvided": {
                "entities": [
                    {
                        "id": "urn:ngsi-ld:ActuatorScreenshot:001",
                        "type": "Actuator"
                    }
                ],
                "attrs": [
                    "Screen"
                ]
            },
            "provider": {
                "http": {
                    "url": "http://localhost:4041"
                },
                "supportedForwardingMode": "all",
                "legacyForwarding": true
            },
            "status": "active"
        }


        I attempted following the example from http://telefonicaid.github.io/fiware-orion/api/v2/stable/:

        curl -X PATCH \
          http://localhost:1026/v2/registrations/5d3ff3e2ab1e270d7775a7bf \
          -d '{
            "expires":"2040-10-04T00:00:00"
        }'


        But as I said I got the error message:
        405 Method Not Allowed

        Feel free to ask for more info.
        Created question in FIWARE Q/A platform on 04-09-2019 at 10:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57784735/method-not-allowed-when-patching-registration


        +Question:+
        Method Not Allowed when patching registration

        +Description:+
        Recently some registrations of commands expired so I am trying to patch their "expires" attribute. However, I receive a 405 method not allowed message error.

        Retrieving info about the registration:

        curl -X GET \
        http://localhost:1026/v2/registrations/5d3ff3e2ab1e270d7775a7bf \
        -H 'Accept: application/json'


        {
            "id": "5d3ff3e2ab1e270d7775a7bf",
            "expires": "2019-08-29T07:38:10.00Z",
            "dataProvided": {
                "entities": [
                    {
                        "id": "urn:ngsi-ld:ActuatorScreenshot:001",
                        "type": "Actuator"
                    }
                ],
                "attrs": [
                    "Screen"
                ]
            },
            "provider": {
                "http": {
                    "url": "http://localhost:4041"
                },
                "supportedForwardingMode": "all",
                "legacyForwarding": true
            },
            "status": "active"
        }


        I attempted following the example from http://telefonicaid.github.io/fiware-orion/api/v2/stable/:

        curl -X PATCH \
          http://localhost:1026/v2/registrations/5d3ff3e2ab1e270d7775a7bf \
          -d '{
            "expires":"2040-10-04T00:00:00"
        }'


        But as I said I got the error message:
        405 Method Not Allowed

        Feel free to ask for more info.
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]

          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: