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

null being passed to handleResponse on error instead of _xhr #111

Open
djarekg opened this issue May 4, 2015 · 1 comment
Open

null being passed to handleResponse on error instead of _xhr #111

djarekg opened this issue May 4, 2015 · 1 comment

Comments

@djarekg
Copy link

djarekg commented May 4, 2015

when an error is encountered, a null value is being passed to the handleResponse method instead of the _xhr object.

error: function( _xhr, status ) {
handleResponse( null, status );
},

@jacobslusser
Copy link

I have the same question about this. This prevents us from getting back useful error data from the response. Modern REST makes heavy use of status codes, particularly in the 4XX range, that this prevents us from seeing.

My guess is that this was information not considered useful when Amplify was first written, but that is not the case these days.

Can this get changed? I would like to get all the jQuery error arguments.

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

2 participants