You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
when using jsOAuth-1.3.6.js with Titanium the "xhr" that is declared via Request();
xhr = Request(); should declare xhr.onerror function because titanium HTTPClient doesn't send readystate = 4 in case an error (like 401 error) accrued. therefore, the failure callback method never fires on HTTPClient error
when using jsOAuth-1.3.6.js with Titanium the "xhr" that is declared via Request();
xhr = Request(); should declare xhr.onerror function because titanium HTTPClient doesn't send readystate = 4 in case an error (like 401 error) accrued. therefore, the failure callback method never fires on HTTPClient error
xhr.onerror = function(e) {
var responseObject = {
error : e.error,
source : xhr,
status : this.status,
statusText : this.statusText
}
failure(responseObject);
};
The text was updated successfully, but these errors were encountered: