SkygearIO / py-skygear

Skygear Cloud Code Python SDK
https://skygear.io
Other
8 stars 20 forks source link

[Feature Request] Option to suppress trace for production in lambda for unhandled exception #189

Open hidden-dimensions opened 6 years ago

hidden-dimensions commented 6 years ago

When an uncatched exception occur in lambda, the following payload is return to client:

{
    "error": {
        "name": "UnexpectedError",
        "code": 10000,
        "message": "__The exception message__",
        "info": {
            "trace": "Traceback (most recent call last):\n...."
        }
    }
}

This is useful for staging but may be a security concern for production environment. Suggest to provide an option to suppress the trace field.

Expected Results

Actual Results

Steps to reproduce

1. 2. 3.