-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
AccessToken.toJwt() exception when setting LivekitEgress.EncodedFileOutput
To Reproduce
Steps to reproduce the behavior:
AccessToken token = new AccessToken("xxx", "xxx");
token.setRoomConfiguration(LivekitRoom.RoomConfiguration.newBuilder()
.setName("xxx")
.setEgress(LivekitRoom.RoomEgress.newBuilder()
.setRoom(LivekitEgress.RoomCompositeEgressRequest.newBuilder()
.setRoomName("xxx")
.addFileOutputs(LivekitEgress.EncodedFileOutput.newBuilder()
.setFileType(LivekitEgress.EncodedFileType.MP4)
.setFilepath("livekit/xxxx.mp4")
.setS3(LivekitEgress.S3Upload.newBuilder()
.setBucket("xxx")
.setRegion("xxx")
.setAccessKey("xxx")
.setSecret("xxx")
.setEndpoint("xxx")
.build())
.build())
.build())
.build())
.build());
Expected behavior
Device Info:
- Java Version: [e.g. Java 11]
- LiveKit Server SDK version: [e.g. 0.9.0]
Additional context
Exception in thread "main" java.lang.IllegalArgumentException: Expected map containing Map, List, Boolean, Integer, Long, Double, String and Date
at com.auth0.jwt.JWTCreator$Builder.withClaim(JWTCreator.java:344)
at io.livekit.server.AccessTokenKt.withClaimAny(AccessToken.kt:218)
at io.livekit.server.AccessToken.toJwt(AccessToken.kt:195)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working