I'm having a lot of trouble seeing why this isn't working. I'm a little
uncertain about how parameterized modules are supposed to show up in a
stack-trace, but this seems reasonable. I don't see how
mochiweb_request:get(scheme) could possibly be a function_clause problem...
and inserting a catch-all "get(_) -> true" at the end doesn't fix the
problem. And ideas what to try?
I am using couchdbkit, but I don't think it's related to the problem...
[error] [<0.137.0>] function_clause error in HTTP request
[info] [<0.137.0>] Stacktrace: [{mochiweb_request,get,
[scheme,
{mochiweb_request,#Port<0.2551>,'PUT',
"/abc_db/_design/xyz",
{1,1},
{7,
{"host",
{'Host',"127.0.0.1:5985"},
{"accept-encoding",
{'Accept-Encoding',"identity"},
{"accept",
{'Accept',"application/json"},
nil,nil},
{"content-length",
{'Content-Length',"11945"},
{"authorization",
{'Authorization',"Basic Og=="},
nil,nil},
{"content-type",
{'Content-Type',"application/json"},
nil,nil}}},
{"user-agent",
{'User-Agent',"couchdbkit/0.6.4"},
nil,nil}}}}]},
{couch_httpd,absolute_uri,2},
{couch_httpd_db,update_doc,4},
{couch_httpd_db,do_db_req,2},
{couch_httpd,handle_request_int,5},
{mochiweb_http,headers,5},
{proc_lib,init_p_do_apply,3}]