[
https://issues.apache.org/jira/browse/USERGRID-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394024#comment-14394024
]
ASF GitHub Bot commented on USERGRID-538:
-----------------------------------------
GitHub user senthilkumar-kj opened a pull request:
https://github.com/apache/incubator-usergrid/pull/211
[USERGRID-538] - improve error response for uncaught errors
Added UncaughtException to handle uncaught errors. It creates a time uuid
and it is set as error id in error response.
Sample response,
>
{"error":"uncaught","timestamp":1428023297834,"duration":1,"error_description":"Internal
Server
Error","exception":"org.apache.usergrid.rest.exceptions.UncaughtException","error_id":"e97cf251-d99d-11e4-8c2e-4eff6b02c98b"}
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/senthilkumar-kj/incubator-usergrid
two-dot-o-dev-uncaught
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-usergrid/pull/211.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #211
----
commit 79d7ec615b7db81ed30acb501b580644f50818a9
Author: Senthil Kumar K <[email protected]>
Date: 2015-04-03T03:28:09Z
[USERGRID-538] - improve error response for uncaught errors
Add time uuid to error response to track the error from logs
----
> Improve uncaught errors' http response
> --------------------------------------
>
> Key: USERGRID-538
> URL: https://issues.apache.org/jira/browse/USERGRID-538
> Project: Usergrid
> Issue Type: Story
> Components: Stack
> Reporter: Senthil Kumar K
> Assignee: Senthil Kumar K
> Priority: Minor
>
> When an uncaught exception happens in stack's rest layer, we throw the java
> error in response to the user. Such responses could just say internal server
> error. And as [~tnine] suggested, we could add a time uuid to the error
> response, so we can correlate the error in logs and track the error down for
> the user.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)