# Join meeting error after host ends the session

**URL:** <https://devforum.zoom.us/t/join-meeting-error-after-host-ends-the-session/122226>\
**Category:** Web\
**Created:** [December 10, 2024, 3:03pm UTC](https://devforum.zoom.us/t/join-meeting-error-after-host-ends-the-session/122226 "2024-12-10T15:03:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [December 12, 2024, 6:07am UTC](https://devforum.zoom.us/t/join-meeting-error-after-host-ends-the-session/122226/2 "2024-12-12T06:07:19Z")

</div>

Hey @lmtruong1512

Thanks for your feedback.

There is indeed a scenario where the meeting is ended, which is unrelated to the `client.init` method but rather to the `client.join` method. However, I can’t give you a specific time threshold. The issue usually occurs during the process of a user joining a session when the host ends the session.

The process of joining a session involves two steps:

1. **Retrieve the session ID using the topic** : If there is an in-progress session under the same topic, the existing session is returned; otherwise, a new session is created.
2. **Connect to the media server using the session ID**.

This creates some edge cases. If step 1 is completed but step 2 has not yet finished connecting to the media server, and the host ends the session during this time, it results in a `JOIN_MEETING_FAILED` error.

Thanks  
Vic

---

_[View the full topic](https://devforum.zoom.us/t/join-meeting-error-after-host-ends-the-session/122226)._
