Has anyone ever encountered error like this when t...
# sdk-rust
n
Has anyone ever encountered error like this when trying to connect to a room in Unity iOS?
Copy code
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

[2024-08-01T03:04:45Z ERROR livekit_ffi::server::room] error while connecting to a room: engine: signal failure: ws failure: IO error: invalid peer certificate: UnknownIssuer
Failed to connect to the room !
<Start>d__11:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
1
does the client sdk not work for
wss
protocol? SSL doesn't seem to work
f
hi @nutritious-painter-9146, are you using a self-signed certificate on the server side?
n
I'm using livekit.cloud directly. URL: wss://notatoy-fab8ohde.livekit.cloud
More info: the script works fine in the unity editor. The connect error shows up only on iOS (on device, haven’t tested sim)
@freezing-lifeguard-43174 sorry to mention you. I see that you made some updates on the
main
branch, I tried and it still produces same error message. Is access to the unity app that I'm working on helps? I can send over access
f
No problem, let me try it
n
@freezing-lifeguard-43174 invited to project called
notatoy-unity
I believe the unity version is somewhat the latest. You should try running the project as is in unity editor with iOS build platform (idk whether choosing the platform matters). You should see that livekit works reasonably well on the editor (there's some echo going on, but I'll figure that part out) If you're able to run it on unity editor, next is to try running it in iOS, where the problem lies. The device that I test on is iPhone 14 Pro physical device (I have not tested on sim yet). You should see error message in the xcode after you run "Build & Run" in Unity.
FYI for people encountering this problem, it is fixed on latest commit on `main`: https://github.com/livekit/client-sdk-unity/commit/3d94ef8e02282a5cee81f3de0c634174c5698616 Thank you @freezing-lifeguard-43174 , sorry for the mention, again 😄
🙏 1
@freezing-lifeguard-43174 sorry to mention, but I'm experiencing this issue again after reimporting/updating my local sdk, Is there any latest change in rust side that might've affected this? Thanks!
f
hi, the unity repo has reused git lfs to manage binary files. Can you try to re-clone the repository or directly import the package using the git url?
n
Interesting, I will try that again. Is git clone enough to activate the git lfs? I remember using git lfs before but how can I check for sure?
ok so directly importing from git url works, but re-clone doesn't work. I did the
python install.py
tho, am I not supposed to do that?
f
okay, I figured out why, I fixed the iOS issue in this commit, so I should remove the python install.py step from README.md, because the correct ios library is already in lfs, so python install.py will overwrite and download the problematic version for ios https://github.com/livekit/client-sdk-unity/commit/3d94ef8e02282a5cee81f3de0c634174c5698616#diff-8e7df1cc29db891e93909[…]9caf81dd25a736ae745fe7b1bfc
n
ahhh, yeah that'd help people reading the README! Thanks @freezing-lifeguard-43174