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

FIWARE.Question.Tech.Fiware Context Provider hello world not working.

    Details

      Description

      Created question in FIWARE Q/A platform on 10-05-2021 at 11:05
      Please, ANSWER this question AT https://stackoverflow.com/questions/67470035/fiware-context-provider-hello-world-not-working

      Question:
      Fiware Context Provider hello world not working

      Description:
      Updated (II):
      I'm trying to register a Context Provider as source for several KPIs.
      So far, it seems registering might be working, as GET http://orion/v2/registrations returns something similar to what I set in creation:
      {
      // each registering a new id is returned: "id": "60991a887032541f4539a71d",
      "description": "City Inhabitants",
      "dataProvided": {
      "entities": [

      { "id": "city.inhabitants" //,"type": "KeyPerformanceIndicator" }

      ]
      },
      "provider": {
      "http":

      { "url": "http://myhost/v2/inhabitants" }

      //, "legacyForwarding": false //perhaps there's a bug, cause although unset or set to false, broker still returns true.
      }
      }

      However GET http://orion/v2/entities/city.inhabitants results in:
      {
      "error": "BadRequest",
      "description": "Service not found. Check your URL as probably it is wrong."
      }

      GET http://orion/v2/entities?type=KeyPerformanceIndicator returns [] and context-provider is not being invoked any way.
      I'm coding a nodejs application from scratch, to better understand what's going on https://github.com/FIWARE/tutorials.Context-Providers, and using tutorial containers as actual Fiware Broker, so all stores/shelf/products are working but not my KPI.
      Any help would be much appreciated.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2021-05-11 05:31|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2021-05-11 05:31|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

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

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

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

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

          People

          • Assignee:
            Unassigned
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: