Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3161

A canceled request to changes spams the log output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • HTTP Interface
    • None

    Description

      If I start a request like:

      curl -v 'http://localhost:5984/dbname/_design/viewname/_rewrite/api/_changes?feed=longpoll&heartbeat=30000&since=now'
      

      and then cancel it with ctrl-c, then after 30 seconds l get the following on stdout, thus spamming my logs:

      [error] 2016-09-27T14:43:27.911968Z couchdb@localhost <0.17263.129> 0d70522852 req_err(925724482) unknown_error : normal
          [<<"chttpd:catch_error/3 L335">>,<<"chttpd:process_request/1 L301">>,<<"chttpd:handle_request_int/1 L229">>,<<"chttpd:process_request/1 L293">>,<<"chttpd:handle_request_int/1 L229">>,<<"mochiweb_http:headers/6 L122">>,<<"proc_lib:init_p_do_apply/3 L247">>]
      

      CouchDB should silence these errors, since canceled requests are not something unexpected on the internet.

      ps.
      the error doesn't get logged when not going through the _rewrite

      pps.
      the rewrite hit is a simple

       {"from": "/api/*",    "to": "../../*"}, 

      Attachments

        Activity

          People

            Unassigned Unassigned
            gdamjan Damjan Georgievski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: