Skip to content

Get exact error response object, without transformation #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gorjanz opened this issue Jan 10, 2018 · 1 comment
Closed

Get exact error response object, without transformation #244

gorjanz opened this issue Jan 10, 2018 · 1 comment

Comments

@gorjanz
Copy link

gorjanz commented Jan 10, 2018

I have searched through source code, and the issues, both open and closed, and the closest thing I could find, was this one: #131 (comment)

For a given REST call, for which the backend service always returns a JSON object, I would like to get the exact object, without the { StatusCodeError: 500 - (StatusCodeError transformation)

I tried setting the transform2xxOnly: true in the options object, but it did not work.

Any thoughts on how to achieve this?

@gorjanz
Copy link
Author

gorjanz commented Jan 10, 2018

[Edit]
I misjudged the stack-trace, as I now see it, it's an object being logged as a string, so that object, in the field error contains the exact error from the response from the http call.

@gorjanz gorjanz closed this as completed Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant