InvalidOperationException: Insecure Connection Not Allowed in MLWebRTCExample

Dear Team,

I'm encountering a problem in my development environment that I need some assistance with. Here are the specifics:

Unity Editor version: 2022-2.0f1
ML2 OS version: Version 1.3.0-dev1, Build B3E.230427.10-R.023, Android API Level 29
MLSDK version: 1.7.0
Host OS: Windows 11

During the operation of my application, I've been facing an InvalidOperationException citing an insecure connection is not allowed. This issue arises when I'm making a web request using the MagicLeap.ConcurrentWebRequestManager and is adversely affecting my MagicLeap.Examples.MLWebRTCExample's Update() function.

Error messages from logs:

2023/06/09 17:41:09.282 6499 6520 Error Unity InvalidOperationException: Insecure connection not allowed
2023/06/09 17:41:09.282 6499 6520 Error Unity   at UnityEngine.Networking.UnityWebRequest.SendWebRequest () [0x00000] in <00000000000000000000000000000000>:0 
2023/06/09 17:41:09.282 6499 6520 Error Unity   at MagicLeap.ConcurrentWebRequestManager.UpdateWebRequests () [0x00000] in <00000000000000000000000000000000>:0 
2023/06/09 17:41:09.282 6499 6520 Error Unity   at MagicLeap.Examples.MLWebRTCExample.Update () [0x00000] in <00000000000000000000000000000000>:0 
2023/06/09 17:41:09.282 6499 6520 Error Unity 
2023/06/09 17:41:15.536 6499 6520 Error Unity [XR] MLSnapshotGetTransformWithDerivatives(controllerState) failed with error MLResult_PoseNotFound


If anyone has encountered this issue before or can provide any insight or possible solutions, it would be greatly appreciated. Looking forward to your suggestions and support.

Thank you!

Hi @usman.bashir, please see below screenshot to allow your HTTP connections in your project's Player settings:
image (16)

or you can use HTTPS.

Great. It have resolved.

Thanks