Description
i am getting error code 101 on zoom login.
First time user able to login successfully. but once user logged out and try to re-login with same credentials zoom sdk is throwing error code 101;
Which version?
5.0.24437.0708
Smartphone (please complete the following information):
** SDK Log File **
Hi @manjeetbrar91, sorry to hear you are running into this issue.
I haven’t been able to reproduce this on my end. Are you able to reproduce in our sample app?
This code is related to a server issue, but let’s double check that there isn’t anything wrong with your implementation. Could you post a couple of code snippets outlining how you are logging in and logging out through the SDK?
Lastly, keep an eye on our status page over at status.zoom.us in case there are any outages reported. I am not aware of any widespread issues for the client SDKs that were reported this week, though.
Thanks!
Zoom Login Code Snip
String userName = "";
String password = "";
userName = etUsername.getText().toString().trim();
password = etPassword.getText().toString().trim();
if (mZoomSDK.isLoggedIn()) {
setUpZoomButton();
return;
}
mZoomSDK.addAuthenticationListener(zoomSDKAuthenticationListener);
int i = mZoomSDK.loginWithZoom(userName, password);
if (!(i == ZoomApiError.ZOOM_API_ERROR_SUCCESS)) {
common.dismissDialog();
if (ZoomApiError.ZOOM_API_INVALID_STATUS == i) {
common.showCustomAlertDialog(this, "Zoom services are not available now. Please try again after few minutes.");
}
sharedPrefsHelper.resetZoomData();
}
Zoom SDK Auth Listener
ZoomSDKAuthenticationListener zoomSDKAuthenticationListener = new ZoomSDKAuthenticationListener() {
@Override
public void onZoomSDKLoginResult(long l) {
if (l == 1019) {
common.showCustomAlertDialog(OnlineClassesSetupActivity.this, "Zoom login locked out for 30 min due to 5 failed attempts. ");
} else if (l == ZoomAuthenticationError.ZOOM_AUTH_ERROR_SUCCESS) {
common.showMsgOnUI("Login successfully.", OnlineClassesSetupActivity.this);
Intent intent = new Intent(OnlineClassesSetupActivity.this, CreateOnlineClasses.class);
startActivity(intent);
finish();
setZoomData();
} else {
common.showCustomAlertDialog(OnlineClassesSetupActivity.this, "Incorrect username/password.");
}
mZoomSDK.removeAuthenticationListener(this);
common.dismissDialog();
}
@Override
public void onZoomIdentityExpired() {
sharedPrefsHelper.resetZoomData();
mZoomSDK.removeAuthenticationListener(this);
common.dismissDialog();
}
@Override
public void onZoomAuthIdentityExpired() {
sharedPrefsHelper.resetZoomData();
mZoomSDK.removeAuthenticationListener(this);
common.dismissDialog();
}
@Override
public void onZoomSDKLogoutResult(long l) {
mZoomSDK.removeAuthenticationListener(this);
if (l == ZoomAuthenticationError.ZOOM_AUTH_ERROR_SUCCESS) {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
sharedPrefsHelper.resetZoomData();
common.dismissDialog();
common.showCustomAlertDialog(OnlineClassesSetupActivity.this, "Logout successfully. code " + l);
}
}, 2000);
} else {
common.showCustomAlertDialog(OnlineClassesSetupActivity.this, "Logout failed.");
}
}
};
Logout Code Snip
if (mZoomSDK != null && mZoomSDK.isLoggedIn()) {
mZoomSDK.addAuthenticationListener(zoomSDKAuthenticationListener);
common.showProgressDialog(this);
boolean b = mZoomSDK.logoutZoom();
System.out.println(b + " logoutZoom");
}
not able to reproduce in sample app
@manjeetbrar91, thanks for providing that. I’m not seeing any problems with your implementation that could be causing this.
The only time I have been able to reproduce this is when calling into loginWithZoom
without successfully logging out first, but that doesn’t explain why you’re seeing it since you’re checking the isLoggedIn
field before attempting to login.
Also, please ensure that you are only calling into loginWithZoom
once, as duplicate calls could also be causing this. (Note: when duplicate login calls occur, one will be successful and the other will give you the 101 error code)
Thanks!
Hi @jon.lieblich thanks for your efforts.
I am able to fix this issue. issue occurred due to tryAutoLoginZoom.