phuczeero opened a new issue #1051: Couch return unknown_error / 
function_clause when create a user with non-string password
URL: https://github.com/apache/couchdb/issues/1051
 
 
   ## Expected Behavior
   Explicit error response
   
   ## Current Behavior
   ```
   {
       "message": "function_clause",
       "error": "unknown_error",
       "reason": "function_clause",
       "ref": 1648166316,
       "scope": "couch",
       "statusCode": 500,
       "request": {
           "method": "POST",
           "headers": {
               "content-type": "application/json",
               "accept": "application/json"
           },
           "uri": "http://couchdb:5984/_users";,
           "body": {
               "_id": "org.couchdb.user:test",
               "name": "test",
               "password": 123,
               "roles": [],
               "type": "user"
           }
       }
   }
   ```
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced 
the bug in -->
   * Version used: 2.1.1
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to