[ https://jira.fiware.org/browse/HELP-18200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez updated HELP-18200: ---------------------------------- Status: In Progress (was: Open) > [fiware-stackoverflow] Dockerize FIWARE can't notify a service > ------------------------------------------------------------------ > > Key: HELP-18200 > URL: https://jira.fiware.org/browse/HELP-18200 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Jason Fox > Labels: docker, fiware, fiware-orion, postman > > Created question in FIWARE Q/A platform on 02-09-2021 at 01:09 > {color: red}Please, ANSWER this question AT{color} 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" > } > } > } -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy