jhawarchirag0 commented on issue #51:
URL: 
https://github.com/apache/openwhisk-package-alarms/issues/51#issuecomment-1869008581

   @hsane2001 , @markusborg , did you guys figure out what the problem was? I 
am trying to do the same and facing the same issue of not being able to deploy 
the trigger
   The command I am trying to run
   `wsk -vi trigger create once-per-min --feed /whisk.system/alarms/alarm 
--param cron "*/1 * * * *"`
   
   The output for above command is: - 
   ```
   REQUEST:
   [PUT]   
https://localhost:4430/api/v1/namespaces/_/triggers/once-per-min?overwrite=false
   Req Headers
   {
     "Authorization": [
       "Basic 
MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "Content-Type": [
       "application/json"
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   Req Body
   
{"name":"once-per-min","annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}]}
   
   RESPONSE:Got response with code 200
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, 
User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "197"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Mon, 25 Dec 2023 14:19:20 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Request-Id": [
       "tVBHVj4o73yEDsHyh6CZR1Dzs20ty0rs"
     ]
   }
   Response body size is 197 bytes
   Response body received:
   
{"annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}],"limits":{},"name":"once-per-min","namespace":"guest","parameters":[],"publish":false,"updated":1703513960734,"version":"0.0.1"}
   REQUEST:
   [POST]  
https://localhost:4430/api/v1/namespaces/whisk.system/actions/alarms/alarm?blocking=true&result=false
   Req Headers
   {
     "Authorization": [
       "Basic 
MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "Content-Type": [
       "application/json"
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   Req Body
   
{"authKey":"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP","cron":"*/1
 * * * *","lifecycleEvent":"CREATE","triggerName":"/_/once-per-min"}
   
   RESPONSE:Got response with code 502
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, 
User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "601"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Mon, 25 Dec 2023 14:19:21 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Openwhisk-Activation-Id": [
       "55671e37772b4f67a71e37772b3f6787"
     ],
     "X-Request-Id": [
       "cJMHlm7imbky4pk3b6vFs1EQWWqJ3HU3"
     ]
   }
   Response body size is 601 bytes
   Response body received:
   
{"activationId":"55671e37772b4f67a71e37772b3f6787","annotations":[{"key":"path","value":"whisk.system/alarms/alarm"},{"key":"waitTime","value":140},{"key":"kind","value":"nodejs:10"},{"key":"timeout","value":false},{"key":"limits","value":{"concurrency":1,"logs":10,"memory":256,"timeout":60000}},{"key":"initTime","value":68}],"duration":993,"end":1703513961882,"logs":[],"name":"alarm","namespace":"guest","publish":false,"response":{"result":{"error":"error
 creating alarm trigger."},"size":87,"status":"application 
error","success":false},"start":1703513960889,"subject":"guest","version":"0.0.1"}
   {
       "activationId": "55671e37772b4f67a71e37772b3f6787",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           },
           {
               "key": "waitTime",
               "value": 140
           },
           {
               "key": "kind",
               "value": "nodejs:10"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           },
           {
               "key": "initTime",
               "value": 68
           }
       ],
       "duration": 993,
       "end": 1703513961882,
       "logs": [],
       "name": "alarm",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": "error creating alarm trigger."
           },
           "size": 87,
           "status": "application error",
           "success": false
       },
       "start": 1703513960889,
       "subject": "guest",
       "version": "0.0.1"
   }
   REQUEST:
   [GET]   https://localhost:4430/api/v1/namespaces/_/triggers/once-per-min
   Req Headers
   {
     "Authorization": [
       "Basic 
MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   RESPONSE:Got response with code 200
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, 
User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "197"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Mon, 25 Dec 2023 14:19:21 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Request-Id": [
       "y7yy3pE0p2SXFOdxLWgnbY3OYMa31GFD"
     ]
   }
   Response body size is 197 bytes
   Response body received:
   
{"annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}],"limits":{},"name":"once-per-min","namespace":"guest","parameters":[],"publish":false,"updated":1703513960734,"version":"0.0.1"}
   REQUEST:
   [POST]  
https://localhost:4430/api/v1/namespaces/whisk.system/actions/alarms/alarm?blocking=true&result=false
   Req Headers
   {
     "Authorization": [
       "Basic 
MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "Content-Type": [
       "application/json"
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   Req Body
   
{"authKey":"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP","cron":"*/1
 * * * *","lifecycleEvent":"DELETE","triggerName":"/_/once-per-min"}
   
   RESPONSE:Got response with code 502
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, 
User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "597"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Mon, 25 Dec 2023 14:19:21 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Openwhisk-Activation-Id": [
       "46faf17462414e98baf1746241be988f"
     ],
     "X-Request-Id": [
       "WoN4pUUCnpwmnLAJkEH1jldS0gSo68Ip"
     ]
   }
   Response body size is 597 bytes
   Response body received:
   
{"activationId":"46faf17462414e98baf1746241be988f","annotations":[{"key":"path","value":"whisk.system/alarms/alarm"},{"key":"waitTime","value":7},{"key":"kind","value":"nodejs:10"},{"key":"timeout","value":false},{"key":"limits","value":{"concurrency":1,"logs":10,"memory":256,"timeout":60000}}],"duration":46,"end":1703513961946,"logs":[],"name":"alarm","namespace":"guest","publish":false,"response":{"result":{"error":"could
 not find trigger /guest/once-per-min in the 
database"},"size":70,"status":"application 
error","success":false},"start":1703513961900,"subject":"guest","version":"0.0.1"}
   {
       "activationId": "46faf17462414e98baf1746241be988f",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           },
           {
               "key": "waitTime",
               "value": 7
           },
           {
               "key": "kind",
               "value": "nodejs:10"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           }
       ],
       "duration": 46,
       "end": 1703513961946,
       "logs": [],
       "name": "alarm",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": "could not find trigger /guest/once-per-min in the 
database"
           },
           "size": 70,
           "status": "application error",
           "success": false
       },
       "start": 1703513961900,
       "subject": "guest",
       "version": "0.0.1"
   }
   REQUEST:
   [DELETE]        
https://localhost:4430/api/v1/namespaces/_/triggers/once-per-min
   Req Headers
   {
     "Authorization": [
       "Basic 
MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   RESPONSE:Got response with code 200
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, 
User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "197"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Mon, 25 Dec 2023 14:19:21 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Request-Id": [
       "8l8hOTvqSbZNE7Ye8T22yQ0fOKVkcKDy"
     ]
   }
   Response body size is 197 bytes
   Response body received:
   
{"annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}],"limits":{},"name":"once-per-min","namespace":"guest","parameters":[],"publish":false,"updated":1703513960734,"version":"0.0.1"}
   ok: deleted trigger once-per-min
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to