Skip to content
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

Error callback has nested error object stringified #41

Open
mirkods opened this issue Oct 28, 2016 · 0 comments
Open

Error callback has nested error object stringified #41

mirkods opened this issue Oct 28, 2016 · 0 comments
Labels

Comments

@mirkods
Copy link
Contributor

mirkods commented Oct 28, 2016

https://github.com/Stamplay/stamplay-product-development/issues/48

The error cames from this line:
https://github.com/Stamplay/stamplay-js-sdk/blob/master/src/promise.js#L39

Probably a good fix is don't wrap the server data in an object in case of error and if the content-type is application/json parse the response and returns it has arrived from the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants