httprequest icon indicating copy to clipboard operation
httprequest copied to clipboard

errors are obscure and leak implementation details

Open rogpeppe opened this issue 8 years ago • 0 comments

When we can't unmarshal a request, the resulting error is verbose and leaks implementation details that it should not.

A recent example:

{
    "message":"cannot unmarshal parameters: cannot unmarshal into field: cannot unmarshal request body: json: cannot unmarshal string into Go value of type params.Token",
    "code":"bad request"
}

rogpeppe avatar Oct 18 '17 13:10 rogpeppe