Reply
New Member
Posts: 7
Registered: ‎08-08-2014

no event service edit for using in webhooks

good day

 

please check problem with service.edit , when i edit a service there is no event so i cant use pluging in that case.

service.insert its working well, ive tested changing a lot of items of a service with no success.

events.png

service.edit never seen here

 

thanks in advance.

Ubiquiti Employee
Posts: 3,511
Registered: ‎12-10-2015
Kudos: 1248
Solutions: 271

Re: no event service edit for using in webhooks

please, send a screenshot of that webhook configuration. Note that the URL must start with http://localhost/... (in case you are linking UCRM plugin)
New Member
Posts: 7
Registered: ‎08-08-2014

Re: no event service edit for using in webhooks

[ Edited ]

 

events.pngpluging works well, problem is there is no event service.edit

 

events.png

when i edit a service there is no event @UBNT-Petr

 

thank you

Ubiquiti Employee
Posts: 3,511
Registered: ‎12-10-2015
Kudos: 1248
Solutions: 271

Re: no event service edit for using in webhooks

Bug fixed, will be released in the next hotfix version, thanks for help.
New Member
Posts: 7
Registered: ‎08-08-2014

Re: no event service edit for using in webhooks

good day

 

ive tested the new version 2.14.1 but i still see strange things

1) when i end service i see 2 events (edit and end)

 

1.png

 

2)no trigger after edit service device

3.png

 

3)sometimes i have error Unable to connect: cURL error 28: Operation timed out after 10001

where can i increase this timeout??

5.png

 

 

thanks in advance

Ubiquiti Employee
Posts: 3,511
Registered: ‎12-10-2015
Kudos: 1248
Solutions: 271

Re: no event service edit for using in webhooks

[ Edited ]

Hi

1) this looks like a bug. we will check it

2) this is how it currently works in UCRM.  When a child entity is edited, UCRM doesn't trigger "parent entity edit event". If you want to catch it, you need to listen to the child entity edit event.

Though, in this particular case, we don't provide the edit event for devices because these entities will be moved to UNMS soon.

3) Timeout for UCRM calls can't be extended. It's the responsibility of the target scripts or plugins to ensure that it doesn't take to much time. If you need to run some expensive scripts, run it in the background using plugin's public.php script main.php script (updated)

New Member
Posts: 7
Registered: ‎08-08-2014

Re: no event service edit for using in webhooks

hi

 

2) but there is no any event when i edit service device.

then after entity be moved to UNMS we lose webhooks with service entities or i'd need UNMS or UCRM+UNMS future version?? my plugins works with services Idea

Highlighted
Ubiquiti Employee
Posts: 3,511
Registered: ‎12-10-2015
Kudos: 1248
Solutions: 271

Re: no event service edit for using in webhooks

@percanta that's the point, we don't want to create webhooks which would be removed soon.
- Webhooks related to service won't be affected
- Webhooks related to devices are not even created in UCRM. UNMS is the tool which should handle network stuff - feel free to hit the UNMS forum.
Reply