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
Can not set both decoder and beforeSend #76
Comments
You found an interesting scenario, congratulations ;) But seriously, sorry Thankfully there is an easy workaround until we get something in place that _Elijah Manor ASPInsider http://aspinsiders.com/default.aspx On Thu, Dec 6, 2012 at 6:16 AM, jfitzharris notifications@github.comwrote:
|
Thanks for the workaround, it solves our problem. |
I am reopening this issue as I have found another problem. In the setUserToken function, add another call to jqXhr.setRequestHeader to add another header and run. Amplify will return an error status but there is no error message. Looking in Fiddler I don't see the ajax call being made, so I wonder if Amplify has a problem with multiple request headers. |
I am finding that I have this issue using amplify 1.1.2 and adding the return true; at the end of my beforeBind function as you described does not solve the problem. If beforeBind is uncommented it doesn't go through the decoder function, if it is commented out then it does. Is there an update on this problem? My code is basically identical to that used by jfitzharris above. |
Errors from json calls are not returned, so the documentation suggests using a decoder. However if I set both decoder and beforeSend in the getSettings variable below the decoder won't be invoked on error. If I set only the decoder, it will be invoked on error.
The text was updated successfully, but these errors were encountered: