Skip to content
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

Open
Perondas opened this issue Apr 10, 2024 · 1 comment
Open

Sending data to a room always causes an exception to fire #59

Perondas opened this issue Apr 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Perondas
Copy link

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:

kotlin.KotlinNullPointerException: Response from io.livekit.server.RoomService.sendData was null but response body type was declared as non-null
at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:43)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)

Steps to reproduce the behavior:

  1. Use io.livekit.server.RoomService.sendData to send any data

Expected behavior
No exception is thrown if the request was a success

Device Info:

  • Java Version: Java 21
  • LiveKit Server SDK version: 0.5.10
  • LiveKit Server: 1.5.3
@Perondas Perondas added the bug Something isn't working label Apr 10, 2024
@Perondas
Copy link
Author

May be related to square/retrofit#3595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant