You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/09/01 05:18:34 UTC

[GitHub] [couchdb] nickva commented on issue #2219: function_clause in chttpd_db:update_doc/4

nickva commented on issue #2219:
URL: https://github.com/apache/couchdb/issues/2219#issuecomment-1233753386

   You could try adding an extra function clause to `couch_mrview_http:view_cb/2` to log the error with `couch_log:error(...)`.
   
   ```erlang
   view_cb({row, Row}, #vacc{meta_sent=true}=Acc) ->
       % Adding another row
       Chunk = [prepend_val(Acc), row_to_json(Row)],
       maybe_flush_response(Acc#vacc{row_sent=true}, Chunk, iolist_size(Chunk));
   
   view_cb(Msg, Acc) ->
       couch_log:error("~p : xxxxx function_clause ~p ~p", [?MODULE, Msg, Acc]),
       error(function_clause).
   ```
   
   There is also a good chance it was fixed in 3.x series, so try to upgrade to 3.2.2 and see if it still happens.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org