Cannot connect to matchmaking when using WebGL

Hi there,

I’m trying to run the NetworkStarter project from here: UNet Sample Projects - Unity Engine - Unity Discussions

And it’s working fine on the editor (I also set my own cloud id in player settings)

But on WebGL, it says this in the console: Failed to read the ID for the match maker, please set the Cloud Project ID string in the Player Settings (see https://unet.cloud.unity3d.com).

The strange thing is that it’s only on WebGL and for the rest it works just fine. I have Unity 5.1.1f1 free.
I hope someone knows how to fix this, I tried rebuilding as well as reopening editor etc.

Thanks!

I’m on Unity 5.2 now. Same issue here. Match Maker works fine from Editor and EXE, but not WebGL.

Note, in Unity 5.2, the difference in how to enter your “Cloud Project ID” – now you do this through “Windows → Unity Services → Multiplayer”… instead of through the old method of “Edit → project → Player”. It took me a long time to find out the new way of connecting up the Project ID to match maker.

No matter, WebGL fails. Other platforms are working fine.

Hi, I had building problems wiht Unity 5.2.1 and I updated and patched to the Unity version of 5.2.2p1 and Building works nicely.

Now when I open a game in web browser there is a error in console. I think it’s about that XMLHttpRequest does not allow streaming of data in Web GL.
Error:

XMLHttpRequest cannot load https://mm.unet.unity3d.com/json/reply/CreateMatchRequest. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nordicedu.com' is therefore not allowed access.
webv03.js:1 XHR failed loading: POST "https://mm.unet.unity3d.com/json/reply/CreateMatchRequest"._JS_WebRequest_Send @ webv03.js:1bHc @ webv03.js:25T3a @ webv03.js:29hTb @ webv03.js:20$Vj @ webv03.js:6XVj @ webv03.js:6Gek @ webv03.js:8Fek @ webv03.js:8F$e @ webv03.js:13k1e @ webv03.js:13q1e @ webv03.js:13Ikk @ webv03.js:8Hkk @ webv03.js:8mhm @ webv03.js:11$kk @ webv03.js:8jlk @ webv03.js:8qlk @ webv03.js:8atj @ webv03.js:6btj @ webv03.js:6Rem @ webv03.js:11coj @ webv03.js:12f6e @ webv03.js:13Rmk @ webv03.js:8wrj @ webv03.js:6vrj @ webv03.js:6prj @ webv03.js:6D$l @ webv03.js:11znj @ webv03.js:12krl @ webv03.js:5_I @ webv03.js:35Pu @ webv03.js:35Fdb @ webv03.js:29hzb @ webv03.js:27gzb @ webv03.js:27vxb @ webv03.js:27wxb @ webv03.js:27Bpe @ webv03.js:18Jpe @ webv03.js:18mub @ webv03.js:27Dzd @ webv03.js:21bwm @ webv03.js:41Runtime.dynCall @ webv03.js:1(anonymous function) @ webv03.js:1Browser.mainLoop.runIter @ webv03.js:1Browser_mainLoop_runner @ webv03.js:1

WebGL platform is not supported for UNet relay server / MM.

I was thinking something like that could be the reason :slight_smile: Do you have any plans if it will ever be supported and when could that happen? It didn’t see anything related on the roadmap page.

1 Like

I have the same error in the console, where could be a problem ?

It is planned to work at any time in the future?

b u m p

There is currently no HLAPI development happening at Unity while they figure out what its future is.