# Instant meeting created with ZAK fails immediately

**URL:** <https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180>\
**Category:** macOS\
**Created:** [December 7, 2021, 9:24pm UTC](https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180 "2021-12-07T21:24:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmisiag](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kmisiag](https://devforum.zoom.us/u/kmisiag)\
**Post date:** [December 7, 2021, 9:24pm UTC](https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180/1 "2021-12-07T21:24:56Z")

</div>

**Description**  
I’m trying to start meeting using following code:

```auto
        let joinParams = ZoomSDKStartMeetingUseZakElements()
        joinParams.userType = SDKUserType_EmailLogin
        joinParams.displayName = displayName
        joinParams.meetingNumber = 0
        joinParams.isDirectShare = false
        joinParams.displayID = 0
        joinParams.isNoVideo = false
        joinParams.isNoAuido = false
        joinParams.vanityID = nil
        joinParams.zak = zak
        joinParams.userId = userId
        sdkMeetingService?.startMeeting(withZAK: joinParams)

```

After execution SDK opens meeting window but it immediately disappears.

Logs:

> ZoomSDKMeetingServiceDelegate: onMeetingStatusChange: State: ZoomSDKMeetingStatus(rawValue: 6), Error: ZoomSDKMeetingError(rawValue: 100), reason: EndMeetingReason(rawValue: 0)

> ZoomSDKMeetingServiceDelegate: onMeetingStatusChange: State: ZoomSDKMeetingStatus(rawValue: 7), Error: ZoomSDKMeetingError(rawValue: 101), reason: EndMeetingReason(rawValue: 0)

---

<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:** [December 8, 2021, 8:10pm UTC](https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180/2 "2021-12-08T20:10:04Z")

</div>

Hi @kmisiag, thanks for the post.

I noticed that you specific the `userType` as `SDKUserType_EmailLogin`, but are providing a ZAK. Usually that login type refers to logging into the SDK directly instead of using OAuth and getting the ZAK through the REST API. If you are using the ZAK, you don’t need to use the [`login`](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_auth_service.html#a5ba5de917f917085bbf5039cbc5d22f4) method. You can also change the type to `ZoomSDKUserType_WithoutLogin` if you are using a ZAK.

Let me know if anything changes after making these adjustments and we can investigate further.

Thanks!

---

<div class="post-metadata">

**Author:** ![kmisiag](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kmisiag](https://devforum.zoom.us/u/kmisiag)\
**Post date:** [December 8, 2021, 8:42pm UTC](https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180/3 "2021-12-08T20:42:28Z")

</div>

> [@jon.zoom](#):
>
> ZoomSDKUserType\_WithoutLogin

Actually I can’t use ZoomSDKUserType\_WithoutLogin with ZoomSDKStartMeetingUseZakElements cause there is a type mismatch and it doesn’t compiles.

> Cannot assign value of type ‘ZoomSDKUserType’ to type ‘SDKUserType’

---

<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:** [December 9, 2021, 7:22pm UTC](https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180/4 "2021-12-09T19:22:12Z")

</div>

Hi @kmisiag,

Thanks for pointing that out. This appears to be an issue specific to Swift integrations, since it only causes a warning in Objective-C. We’ll look into how we can better support Swift in this regard.

In the meantime, can you try using `SDKUserType_Unknown` along with the other suggestion from my previous reply and let me know if that has any impact on the errors you’re seeing?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 9, 2022, 5:22am UTC](https://devforum.zoom.us/t/instant-meeting-created-with-zak-fails-immediately/61180/5 "2022-01-09T05:22:50Z")

</div>

Closed on January 9, 2022, 5:22am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
