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

FIWARE.Question.Tech.Dockerize FIWARE can't notify a service.

    Details

      Description

      Created question in FIWARE Q/A platform on 02-09-2021 at 01:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/69023070/dockerize-fiware-cant-notify-a-service

      Question:
      Dockerize FIWARE can't notify a service

      Description:
      I just started to use FIWARE. I downloaded the latest version on the website (v2) using docker-compose on a PopOs distro.
      I'm using Postman to make requests (create the entities and subscriptions) and a Laravel application to listen the notification from the FIWARE subscriptions. But for some reason, today, when I started the docker service and start to send requests: the FIWARE notifications suddenly stopped to work.
      When I access the subscriptions endpoint FIWARE returns:
      "notification": {
      "timesSent": 1,
      "lastNotification": "2021-09-02T01:19:39.000Z",
      "attrs": [],
      "onlyChangedAttrs": false,
      "attrsFormat": "keyValues",
      "http":

      { "url": "http://localhost:8000/api/notifications" }

      ,
      "lastFailure": "2021-09-02T01:19:39.000Z",
      "lastFailureReason": "Couldn't connect to server"
      }

      FIWARE can't comunicate, but if I make a POST request using Postman for that endpoint (http://localhost:8000/api/notifications) it returns 200.
      There's some aditional configuration between the FIWARE docker container and the local machine? Or I'm doing something wrong?
      This is my entity:
      // http://orion/v2/subscription

      {
      "id": "movie",
      "type": "movie",
      "name":

      { "type": "text", "value": "movie name" }

      ,
      "gender":

      { "type": "text", "value": "drama" }

      }

      This is how I'm doing the subscription:
      // http://orion/v2/subscriptions

      {
      "description": "Notify me about any movie of gender drama",
      "subject": {
      "entities": [

      {"idPattern": ".*","type": "movie"}

      ],
      "condition": {
      "attrs": ["gender"],
      "expression":

      { "q": "gender==drama" }

      }
      },
      "notification": {
      "http":

      { "url": "http://127.0.0.1:8000/api/notifications" }

      }
      }

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2021-09-02 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2021-09-02 05:31|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

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

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

          People

          • Assignee:
            jason.fox Jason Fox
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: