# I am getting "joining fail" while integrating web sdk in angular 8

**URL:** <https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713>\
**Category:** Web\
**Created:** [January 27, 2020, 12:23pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713 "2020-01-27T12:23:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 27, 2020, 12:23pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/1 "2020-01-27T12:23:54Z")

</div>

**Error Json Response** :-  
{method: “join”, status: false, errorCode: 1, errorMessage: “joining fail”, result: null}

 ![Capture erro2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/28b12a8438ee0bb90fc379b51400c2077429f8ba.png)

---

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 27, 2020, 12:45pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/2 "2020-01-27T12:45:04Z")

</div>

**my angular typescript code:-**

```auto
import { Component, OnInit } from '@angular/core';

import { ZoomMtg } from '@zoomus/websdk';

@Component({

  selector: 'app-root',

  templateUrl: './app.component.html',

  styleUrls: ['./app.component.css']

})

export class AppComponent implements OnInit{

  title = 'zoomtest';

  API_KEY = 'API_KEY';

  API_SECRET = 'API_SECRET';

  meeting_number;

  display_name;

  constructor() { 

  }

  ngOnInit(): void {

    debugger;

        console.log('checkSystemRequirements');

      console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

      ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.0/lib', '/av');

      ZoomMtg.preLoadWasm()

      ZoomMtg.prepareJssdk();

      }

    

      join_meeting()

      {

        debugger;

      var meetConfig = {

        apiKey: this. API_KEY,

        apiSecret:this.API_SECRET,

        meetingNumber: this.meeting_number,

        userName: this.display_name,

        passWord: "",

        leaveUrl: "http://localhost:4200",

        role: 0

    };

    var signature = ZoomMtg.generateSignature({

      meetingNumber: meetConfig.meetingNumber,

      apiKey: meetConfig.apiKey,

      apiSecret: meetConfig.apiSecret,

      role: meetConfig.role,

      success: (res) => {

        console.log(res.result);

      }

  });

  console.log(signature);

  ZoomMtg.init({

    leaveUrl: 'http://localhost:4200',

    isSupportAV: true,

    success: (res) => {

        ZoomMtg.join(

            {

                meetingNumber: meetConfig.meetingNumber,

                userName: meetConfig.userName,

                signature: signature,

                apiKey: meetConfig.apiKey,

                userEmail: 'email@gmail.com',

                passWord: meetConfig.passWord,

                success: (res) => {

                  console.log('join meeting success');

                },

                error: (res) => {

                  console.log(res);

                }

            }

        );

    }

    

    ,

    error: (res) => {

      console.log(res);

    }

});

  }

}

```

**html code is:-**

```auto
<nav id="nav-tool" class="navbar navbar-inverse navbar-fixed-top">

  <div class="container">

      <div class="navbar-header">

          <a class="navbar-brand" href="#">MyMeetingApp</a>

      </div>

      <div id="navbar">

          <form class="navbar-form navbar-right" id="meeting_form">

              <div class="form-group">

                  <input type="text" name="display_name" [(ngModel)]="display_name" value="WebSDK1.7.0#CDN" placeholder="Name" class="form-control" required>

              </div>

              <div class="form-group">

                  <input type="text" name="meeting_number" [(ngModel)]="meeting_number" value="" placeholder="Meeting Number" class="form-control" required>

              </div>

              <button type="submit" class="btn btn-primary" (click)="join_meeting()">Join</button>

          </form>

      </div><!--/.navbar-collapse -->

  </div>

</nav>

<router-outlet></router-outlet>

```

---

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 27, 2020, 1:17pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/3 "2020-01-27T13:17:07Z")

</div>

please find my repository where the code is in git :- you can clone from url

please check and update me the response asap.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 27, 2020, 9:41pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/4 "2020-01-27T21:41:54Z")

</div>

Hey @sravan, thanks for posting and using Zoom!

Are you using [JWT App Credentials](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app) for your API Key and Secret?

Also are you using a real meeting ID?

What are your join meeting settings? Do you allow email domains to join your meeting?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 28, 2020, 4:45am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/5 "2020-01-28T04:45:35Z")

</div>

yes @tommy i am using jwt App credentials you can check in the code i just given .please provide me the soution its an urgent integration need in our app

---

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 28, 2020, 5:11am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/6 "2020-01-28T05:11:09Z")

</div>

here is the git repository of the code what am working on

> [@sravan](#):
>

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 28, 2020, 4:49pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/7 "2020-01-28T16:49:22Z")

</div>

Hey @sravan,

It appears you do not have a Free Trial, or Pro and above plan. I tested your code with my JWT Credentials, and it worked.

Please reach out to [isv@zoom.us](mailto:isv@zoom.us) to request a free trial, or [upgrade to Pro](https://zoom.us/pricing) to [use the Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/preface/getting-a-zoom-account#2-license-type-pricing--plan).

Also please delete that repo you shared, it has your JWT credentials in it.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 29, 2020, 6:31am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/10 "2020-01-29T06:31:37Z")

</div>

Thanks for the replay ,I have Free Trial Account Prior but the issue was with my incorrect DateTime in the system ,atlast finally after going through the entire forum queries i thought that datetime is issue then i found that and fixed the issue. Anyhow thanks for the replay once again.

---

<div class="post-metadata">

**Author:** ![sravan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sravan/32/2762_2.png) [@sravan](https://devforum.zoom.us/u/sravan)\
**Post date:** [January 29, 2020, 6:32am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/11 "2020-01-29T06:32:28Z")

</div>

those credentials were expired i have regenereted new key

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 29, 2020, 4:51pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/12 "2020-01-29T16:51:01Z")

</div>

Glad you were able to fix the issue! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [May 31, 2020, 6:54pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/13 "2020-05-31T18:54:19Z")

</div>

Hi tommy,  
I am facing unable to join issue.  
I don’t know what was the reason.  
Please help me how to fix this issue.

 ![joining fail](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6165bf28a67ae7725e2a8d984aa99cba72963944.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 3, 2020, 8:14pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/14 "2020-06-03T20:14:25Z")

</div>

Hey @jagathprasad0,

Please provide the error message in the browser console, and steps to reproduce the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [June 7, 2020, 10:46am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/15 "2020-06-07T10:46:39Z")

</div>

Hi @tommy,  
Apologies for delay, I was busy with other pending items in my application.  
Please find the screen shots and of integration and work flow.

 ![plugin](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/0e54157da93b3dccf52e7e8bffbeeb310f73e732.png)  
 ![import](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/059c7e3bdaf5b6d6e1775784f5dc36a5faba6ac9.png)  
 ![meeting](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/122de3876276c89b067ca7028abed070bf1a9334.png) ![signature](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2f003c93ef0b7477cee338987a75ef1b41782a1a.png)  
 ![init](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/08d92cdd1cddd36f2d28247129eb777fade46f77.png)  
 ![error](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/659c78632fdea382afebf4d84650ad7ac78c649e.png)

Please help me , I have to integrate this ASAP,  
I have been trying lot, but don’t something is not working.  
please update me ASAP.

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [June 8, 2020, 5:53pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/16 "2020-06-08T17:53:03Z")

</div>

Please help me. Need your intervention.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 12, 2020, 8:56pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/17 "2020-06-12T20:56:05Z")

</div>

Hey @jagathprasad0,

I see you are on a free plan. Please upgrade to a [Pro plan](https://zoom.us/pricing), that should fix the issue.

If it still does not work, please share your code in a github repo (without your API keys) so I can reproduce the issue locally.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [June 13, 2020, 1:03am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/18 "2020-06-13T01:03:39Z")

</div>

@tommy ,  
As per your request I have upgraded to Pro plan, but still the issue is “failed to connect” and the response is “Invalid Signature” , Please update me soon, you are taking more time.  
Github repo : [https://github.com/JagathPrasad/zoom](https://github.com/JagathPrasad/zoom)

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [June 13, 2020, 1:44am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/19 "2020-06-13T01:44:41Z")

</div>

@tommy  
I have tried with your code example,  
[https://github.com/zoom/websdk-sample-angular.git](https://github.com/zoom/websdk-sample-angular.git%60)

using my own .net api to generate the key, then it hasnt given any response.

 ![no response](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/24c528b027038a4e515b82b9114949201f1df3cd.png)

my api logic as per the doc.  
[Route(“getgeneratetoken/{apiKey}/{apiSecret}/{meetingNumber}/{role}”)]  
public IActionResult GetGenerateToken(string apiKey, string apiSecret, string meetingNumber,  
string role)  
{  
var ts = (int)DateTimeOffset.UtcNow.AddMinutes(30).ToUnixTimeSeconds();//  
(ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000).ToString();  
string message = String.Format("{0}{1}{2}{3}", apiKey, meetingNumber, ts, role);  
apiSecret = apiSecret ?? “”;  
var encoding = new System.Text.ASCIIEncoding();  
byte keyByte = encoding.GetBytes(apiSecret);  
byte messageBytesTest = encoding.GetBytes(message);  
string msgHashPreHmac = System.Convert.ToBase64String(messageBytesTest);  
byte messageBytes = encoding.GetBytes(msgHashPreHmac);  
using (var hmacsha256 = new HMACSHA256(keyByte))  
{  
byte hashmessage = hmacsha256.ComputeHash(messageBytes);  
string msgHash = System.Convert.ToBase64String(hashmessage);  
string token = String.Format("{0}.{1}.{2}.{3}.{4}", apiKey, meetingNumber, ts, role, msgHash);  
var tokenBytes = System.Text.Encoding.UTF8.GetBytes(token);  
return Ok(System.Convert.ToBase64String(tokenBytes).TrimEnd(padding));  
}  
}  
public static long ToTimestamp(DateTime value)  
{  
long epoch = (value.Ticks - 621355968000000000) / 10000;  
return epoch;  
}

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [June 16, 2020, 9:59am UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/20 "2020-06-16T09:59:21Z")

</div>

@tommy please help me or update me. Really getting delayed. After purchasing subscription I don’t find any changes.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 18, 2020, 11:26pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/22 "2020-06-18T23:26:08Z")

</div>

Hey @jagathprasad0,

I have sent you a direct message to help debug your signature.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jagathprasad0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jagathprasad0/32/9575_2.png) [@jagathprasad0](https://devforum.zoom.us/u/jagathprasad0)\
**Post date:** [August 14, 2021, 4:49pm UTC](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713/24 "2021-08-14T16:49:07Z")

</div>

Hi @tommy,

I am getting these error. can you please help me on this.  
I am able to get all success details, finally it throws below error.

 ![zoom error 2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/8/8837a5c231a718f92858130cf41846c192bf61f4.png)

 ![zoom error](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/1/9125402f5001d0dc2831dd320cdab39b7e788ca0.png)

[Next page](https://devforum.zoom.us/t/i-am-getting-joining-fail-while-integrating-web-sdk-in-angular-8/7713.md?page=2)
