# Issues with webrtcsession while using the electron SDK

**URL:** <https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783>\
**Category:** Windows\
**Created:** [November 17, 2017, 8:16am UTC](https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783 "2017-11-17T08:16:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meir\_Schreiber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/meir_schreiber/32/9638_2.png) [@Meir\_Schreiber](https://devforum.zoom.us/u/Meir_Schreiber)\
**Post date:** [November 17, 2017, 8:16am UTC](https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783/1 "2017-11-17T08:16:11Z")

</div>

Hi!

I’ve been using the zoom electron SDK successfully for several days. Today, suddenly, I started getting the following error when I do the SDK authentication:

**[17848:1116/115434:ERROR:webrtcsession.cc(1226)] ConnectDataChannel called when data\_channel\_ is NULL.**

The SDK authentication call causes the **apicallresultcb** callback to be called with the&nbsp; **apiname** of **SDKAuth** and the ret value of **SDKERR\_SUCCESS.**

The **SDKAuthcb** callback also gets called and the status it receives is&nbsp; **AUTHRET\_SUCCESS**

When this happens, the system does not proceed to logging the user in.

If I try to start a meeting, I get the error:

**SDKERR\_WRONG\_USEAGE** in the callback **apicallresultcb**

This worked fine with the same credentials a couple of days ago and now this happens consistently.

The only thing that happened in the interim is that I built an installer and installed the system on another computer. This started happening there, but now it also happens on my dev computer.

What changed?

What am I doing wrong?

&nbsp;

Thanks,

---

<div class="post-metadata">

**Author:** ![dats\_liao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dats_liao/32/464_2.png) [@dats\_liao](https://devforum.zoom.us/u/dats_liao)\
**Post date:** [November 20, 2017, 10:50am UTC](https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783/2 "2017-11-20T10:50:06Z")

</div>

hi,

i think it is the wrong user type you used. we have two user type to choose. api user or login user.

1\>&nbsp;

StartMeeting and JoinMeeting in the&nbsp;zoom\_meeting.js are&nbsp;for login user.

2\>

StartMeetingWithOutLogin and JoinMeetingWithoutLogin in the&nbsp;zoom\_meeting.js are for api user.

&nbsp;

could you please to check your code?

thanks

dats

---

<div class="post-metadata">

**Author:** ![Meir\_Schreiber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/meir_schreiber/32/9638_2.png) [@Meir\_Schreiber](https://devforum.zoom.us/u/Meir_Schreiber)\
**Post date:** [November 20, 2017, 6:38pm UTC](https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783/3 "2017-11-20T18:38:04Z")

</div>

Hi!

Thanks for your response. My code is based on the Zoom Electron demo. The code there definitely uses the StartMeeting, not the StartMeetingWithOutLogin. I can tell you that it worked great with my API key and secret along with the username and password.

However, I think that the SDK initialization is failing before that becomes relevant. The SDK authentication seems to fail with the error I mentioned. you get that before you start the meeting, it happens when I call SDKAuth in this call:

zoomauth.SDKAuth(appkey, appsecret).

I think that once that fails, everything that happens after is not relevant anymore.

&nbsp;

Ilan

&nbsp;

&nbsp;

---

<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:** [August 26, 2021, 7:35pm UTC](https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783/4 "2021-08-26T19:35:20Z")

</div>

Closing as resolved.

-Tommy

---

<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:** [August 26, 2021, 7:35pm UTC](https://devforum.zoom.us/t/issues-with-webrtcsession-while-using-the-electron-sdk/783/5 "2021-08-26T19:35:22Z")

</div>


