You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Brandon Shelley (JIRA)" <ji...@apache.org> on 2015/12/09 19:47:11 UTC

[jira] [Created] (USERGRID-1178) Making a PUT request to /token endpoints returns a 500 Internal Server Error

Brandon Shelley created USERGRID-1178:
-----------------------------------------

             Summary: Making a PUT request to /token endpoints returns a 500 Internal Server Error
                 Key: USERGRID-1178
                 URL: https://issues.apache.org/jira/browse/USERGRID-1178
             Project: Usergrid
          Issue Type: Bug
          Components: Stack
    Affects Versions: 2.1.0
            Reporter: Brandon Shelley
            Priority: Minor


When making a PUT request with a working token request body (instead of a POST) Usergrid throws a 500 back instead of a 400 bad request.

E.g.:

{code}PUT https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/token {"username": "someuser", "password": "mypassword", "grant_type": "password"}{code}

Returns:

{code}{
    "error": "uncaught",
    "timestamp": 1449686731484,
    "duration": 0,
    "error_description": "Internal Server Error",
    "exception": "org.apache.usergrid.rest.exceptions.UncaughtException",
    "error_id": "062971c8-9ea5-11e5-b0d4-12aee0c06a45"
}{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)