Details
-
Improvement
-
Resolution: Fixed
-
Major
-
3.0
-
None
-
Security Level: Public
-
None
-
CBG Sprint 116
-
2
Description
SGW is not picking up the webhook if it's defined as filter:
The relevant part of the config:
"bucket":"data-bucket", |
"event_handlers": { |
"document_changed":[ |
{"handler": "webhook", |
"filter":"http://{IP}:5007/webhookFilter", "url": "http://{IP}:5007"}] |
The webhook filter:
@app.route("/webhookFilter") |
def webhook_filter():
|
return 'function(doc) { return false }' |
The runtime config:
'event_handlers': {'document_changed': [{'handler': 'webhook', 'url': 'http://{IP}:5007'}] } |
I have attached the logs. Presumably the filter is picked up because there would be an error in the logs.
SGW: 3.1.0-530