# On zoom login error code 101

**URL:** <https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438>\
**Category:** Android\
**Created:** [August 28, 2020, 11:58am UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438 "2020-08-28T11:58:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjeetbrar91](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@manjeetbrar91](https://devforum.zoom.us/u/manjeetbrar91)\
**Post date:** [August 28, 2020, 11:58am UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438/1 "2020-08-28T11:58:54Z")

</div>

**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):**

- OS: Android

\*\* SDK Log File \*\*

> **[zSdkApp\_3.log](https://drive.google.com/file/d/1zD0nyuQPTNanF6n1KVxF0myIhavUQYJ_/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [August 28, 2020, 8:35pm UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438/2 "2020-08-28T20:35:51Z")

</div>

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](http://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!

---

<div class="post-metadata">

**Author:** ![manjeetbrar91](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@manjeetbrar91](https://devforum.zoom.us/u/manjeetbrar91)\
**Post date:** [August 31, 2020, 4:28am UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438/3 "2020-08-31T04:28:30Z")

</div>

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");
        }
```

---

<div class="post-metadata">

**Author:** ![manjeetbrar91](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@manjeetbrar91](https://devforum.zoom.us/u/manjeetbrar91)\
**Post date:** [August 31, 2020, 4:38am UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438/4 "2020-08-31T04:38:17Z")

</div>

> [@jon.zoom](#):
>
> Are you able to reproduce in our sample app?

not able to reproduce in sample app

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [August 31, 2020, 5:22pm UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438/5 "2020-08-31T17:22:13Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![manjeetbrar91](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@manjeetbrar91](https://devforum.zoom.us/u/manjeetbrar91)\
**Post date:** [September 1, 2020, 3:42am UTC](https://devforum.zoom.us/t/on-zoom-login-error-code-101/28438/6 "2020-09-01T03:42:16Z")

</div>

Hi @jon.zoom thanks for your efforts.

I am able to fix this issue. issue occurred due to tryAutoLoginZoom.
