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

FIWARE.Question.Tech.How to enable NGSIv2 in iotagent-ul helmchart?.

    Details

      Description

      Created question in FIWARE Q/A platform on 09-10-2022 at 08:10
      Please, ANSWER this question AT https://stackoverflow.com/questions/74003335/how-to-enable-ngsiv2-in-iotagent-ul-helmchart

      Question:
      How to enable NGSIv2 in iotagent-ul helmchart?

      Description:
      I received

      {"name":"BAD_REQUEST","message":"Request error connecting to the Context Broker: 501"}

      error when when I send a POST to iotagent-ul deployed via iotagent-ul helm chart.
      time=2022-10-08T09:03:18.182Z | lvl=DEBUG | corr=d7ed414d-a132-45ea-b4a3-38ee14a828dc | trans=d7ed414d-a132-45ea-b4a3-38ee14a828dc | op=IoTAgentNGSI.Request | from=n/a | srv=openiot | subsrv=/ | msg=Response {
      "error": "NotImplemented",
      "description": "Only NGSIv1-based forwarding supported at the present moment. Set explictely legacyForwarding to true"
      }

      Following the iotagent-ul documentation to enable NGSIv2, it must be set ngsiVersion in contextBroker:
      {
      host: '192.168.56.101',
      port: '1026',
      ngsiVersion: 'v2'
      }

      Now, I get this error:
      time=2022-10-08T18:17:24.614Z | lvl=ERROR | corr=841d2b61-463e-42ff-acd7-d0f4b867b7b3 | trans=841d2b61-463e-42ff-acd7-d0f4b867b7b3 | op=IoTAgentNGSI.DeviceService | srv=openiot | subsrv=/ | msg=Registration error connecting to the Context Broker:

      {"code":"400","reasonPhrase":"Bad Request","details":"missing isDomain value for registration attribute"}

      | comp=IoTAgent

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-10 05:31|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-10 05:31|CREATED monitor | # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-12 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-12 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-13 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-13 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            stefan.wiedemann Stefan Wiedemann
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: