-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending data to a room always causes an exception to fire #59
Comments
May be related to square/retrofit#3595 |
Can you turn on logging in your client and post the logs? |
If needed we can try to dive deeper, hope this helps... We call this via:
and this is the output
|
Turn on logging by passing true to the |
Thanks for your understanding. I have taken over from my collegue and I have not so much knowledge on livekit so far.... Here are the logs:
This is with Version: v1.5.3 V1.6.2 has the same issue. I am trying to catch the network traffic between the nodes now. |
We had the implementation as follows:
After looking at the server-sdk-kotlin and the livekit server I saw that the call returns nothing (https://github.com/livekit/livekit/blob/master/pkg/service/roommanager.go#L778). Now I removed the .await() from the call and at first glance I don't get the exception anymore. Is this the proper usage? |
Calling await (or execute if running in a non-coroutine world) is required to actually make the call to the server. Looks like the problem here is using |
Thanks a lot for clearifing the issue for me. Seems it works now with awaitResponse. Would it be possible to change
from to so it would trigger https://github.com/square/retrofit/blob/ed2c6c9f1840ace8b2f49bc6de51a099ac2b5059/retrofit/src/main/java/retrofit2/KotlinExtensions.kt#L65 Thanks |
When using
io.livekit.server.RoomService.sendData
to send any data to a exisintg room an exception is raised.The data does however end up being sent, meaning that members of the room receive the data.
The exception being:
Steps to reproduce the behavior:
io.livekit.server.RoomService.sendData
to send any dataExpected behavior
No exception is thrown if the request was a success
Device Info:
The text was updated successfully, but these errors were encountered: