Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: FIWARE-TECH-HELP
-
Labels:
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":
,
"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":
,
"gender":
}
This is how I'm doing the subscription:
// http://orion/v2/subscriptions
{
"description": "Notify me about any movie of gender drama",
"subject": {
"entities": [
],
"condition": {
"attrs": ["gender"],
"expression":
}
},
"notification": {
"http":
}
}
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
5h 10m | 1 | Fernando Lopez | 02/Sep/21 12:42 PM | |||||
|
1s | 1 | Fernando Lopez | 02/Sep/21 12:42 PM | |||||
|
18h 48m | 1 | Backlog Manager | 03/Sep/21 7:31 AM |