# WebGL RegionRequest timeout

**URL:** <https://community.coherence.io/t/webgl-regionrequest-timeout/462>\
**Category:** Help\
**Created:** [February 26, 2024, 11:52pm UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462 "2024-02-26T23:52:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.picerno](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@michael.picerno](https://community.coherence.io/u/michael.picerno)\
**Post date:** [February 26, 2024, 11:52pm UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/1 "2024-02-26T23:52:15Z")

</div>

Hiya,

So I have a setup where I am instantiating a prefab with Coherence bridge then doing calls to get the Region to create rooms. This works well when I run in editor but once I build it out and run the webgl build locally it just times out. I’m not quite sure how to debug this. Thanks!

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [February 27, 2024, 12:45am UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/2 "2024-02-27T00:45:23Z")

</div>

Hello, do you have a build you can share that we can inspect, or can you post any errors you see in the console logs? You can post your build to a page on coherence: [Share Builds - Unity Multiplayer SDK Documentation | coherence](https://docs.coherence.io/get-started/coherence-cloud/share-builds)

---

<div class="post-metadata">

**Author:** ![michael.picerno](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@michael.picerno](https://community.coherence.io/u/michael.picerno)\
**Post date:** [February 27, 2024, 2:15am UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/3 "2024-02-27T02:15:05Z")

</div>

Okay I’m seeing the errors with a test project I made:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/426fe9e24104c71c938e80664aeaa7c334e91c8d.png)

Here is a link to the build: [Test project - coherence](https://coherence.io/games/virbela/test-project)

Is there a specific host or someplace I can put up this little sample project I made?

---

<div class="post-metadata">

**Author:** ![michael.picerno](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@michael.picerno](https://community.coherence.io/u/michael.picerno)\
**Post date:** [February 27, 2024, 6:32am UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/4 "2024-02-27T06:32:32Z")

</div>

I think I figured out the issue after looking through the example code. I was missing the coroutine that waits on the cloud service to fully login. I don’t think I saw that flow in the documentation anywhere.

---

<div class="post-metadata">

**Author:** ![per\_coh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/per_coh/32/27_2.png) [@per\_coh](https://community.coherence.io/u/per_coh)\
**Post date:** [February 27, 2024, 8:57am UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/5 "2024-02-27T08:57:27Z")

</div>

Hey @michael.picerno, thanks for mentioning that about our documentation. We’ll take a look and see if we can tweak that bit.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [February 27, 2024, 10:44am UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/6 "2024-02-27T10:44:54Z")

</div>

Ah, thanks for updating us. So to clarify, you were able to do something like this?

`await cloudService.WaitForCloudServiceLoginAsync(1000);` and that solved your problem?

---

<div class="post-metadata">

**Author:** ![michael.picerno](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@michael.picerno](https://community.coherence.io/u/michael.picerno)\
**Post date:** [February 27, 2024, 3:29pm UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/7 "2024-02-27T15:29:10Z")

</div>

Since the project I’m making is for webgl I had to use a coroutine so I copied this part:

```auto
StartCoroutine(WaitForCloudService());

private IEnumerator WaitForCloudService()
{
    while (!_coherenceCloudService.Rooms.IsLoggedIn)
    {
        yield return null;
    }

    _coherenceCloudService.Rooms.RefreshRegions(RefreshRegions);
} 

```

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)\
**Post date:** [May 27, 2024, 3:29pm UTC](https://community.coherence.io/t/webgl-regionrequest-timeout/462/8 "2024-05-27T15:29:14Z")

</div>

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