Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-2729

Info-level logging when a remote webhook filter is empty

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 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

       

      Attachments

        1. sg_debug.log
          116 kB
        2. sg_info.log
          13 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gregory.newmansmith Gregory Newman-Smith
            gilad.kalchheim Gilad Kalchheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty