Friday 15 February 2013

amazon web services - CouchDB Error 500: function_clause error in HTTP request -



amazon web services - CouchDB Error 500: function_clause error in HTTP request -

when making rest phone call couchdb, request fails unknown error 500. help much appreciated... thanks!

here logs:

[thu, 30 oct 2014 20:47:50 gmt] [debug] [] 'get' /settings/master-config? {1,1} "10.48.xx.xxx" headers: [{'authorization',"basic xxx=, basic xxx=="}, {'connection',"keep-alive"}, {'host',"127.0.0.1:5984"}, {'user-agent',"apache-httpclient/4.2.2 (java 1.5)"}, {'x-forwarded-for',"10.48.xx.xxx"}, {"x-forwarded-host","my.couchdb.server.com"}, {"x-forwarded-server","ip-10-48-xx-xxx.ec2.internal"}, {"x-newrelic-id","xxxx="}, {"x-newrelic-transaction","xxxxxxx"}] [thu, 30 oct 2014 20:47:50 gmt] [debug] [] oauth params: [] [thu, 30 oct 2014 20:47:50 gmt] [error] [] function_clause error in http request [thu, 30 oct 2014 20:47:50 gmt] [info] [] stacktrace: [{base64,b64d_ok,[eq]}, {base64,decode,2}, {base64,decode,1}, {couch_httpd_auth,basic_name_pw,1}, {couch_httpd_auth, default_authentication_handler,1}, {couch_httpd,authenticate_request,2}, {couch_httpd,handle_request_int,5}, {mochiweb_http,headers,5}] [thu, 30 oct 2014 20:47:50 gmt] [info] [] 10.48.xx.xxx - - /settings/master-config? 500 [thu, 30 oct 2014 20:47:50 gmt] [error] [] httpd 500 error response: {"error":"unknown_error","reason":"function_clause"}

your authorization header looks weird: {'authorization',"basic xxx=, basic xxx=="} - there should single basic credentials token, not multiple ones.

amazon-web-services couchdb

No comments:

Post a Comment