Hi,
I am trying to write a webhook to detect the document in a bucket update and call a external url. I am changing a document from couchbase admin panel but webhook is not triggered.
Please help me. I am new in couchbase.
In console warning:
2020-04-30T20:25:47.076+05:30 [WRN] changeCache: Doc “1586773668656” does not have valid sync data. – db.(*changeCache).DocChanged() at change_cache.go:448
my event_handler json:
{
"log":["REST+","CRUD+","Events","Events+","HTTP+"],
"databases": {
"db": {
"server": "http://localhost:8091",
"username": "xxxxxxxxxx",
"password": "xxxxxxx",
"bucket":"MyApplication",
"num_index_replicas":0,
"users": { "GUEST": { "disabled": false, "admin_channels": ["*"] } },
"event_handlers": {
"max_processes" : 1000,
"wait_for_process" : "2",
"document_changed": [
{
"handler": "webhook",
"url": "http://localhost:3000/notify",
"timeout": 30
}
]
},
"allow_conflicts": false,
"revs_limit": 20
}
}
}