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

java.lang.IllegalStateException: Unsupported option number 21 #57

Closed
twyatt opened this issue Nov 29, 2021 · 1 comment
Closed

java.lang.IllegalStateException: Unsupported option number 21 #57

twyatt opened this issue Nov 29, 2021 · 1 comment

Comments

@twyatt
Copy link
Member

twyatt commented Nov 29, 2021

Caused by java.lang.IllegalStateException: Unsupported option number 21
       at com.juul.koap.DecoderKt.readOption(DecoderKt.java:412)
       at com.juul.koap.DecoderKt.readOptions(DecoderKt.java:329)
       at com.juul.koap.DecoderKt.decodeContent(DecoderKt.java:194)
       at com.juul.koap.DecoderKt.decode(DecoderKt.java:178)
       at com.juul.koap.DecoderKt.decode$default(DecoderKt.java:175)
       <redacted>
       at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit(FlowKt__TransformKt.java:137)
       at com.juul.kable.Observers$acquire$$inlined$map$1$2.emit(Observers.java:137)
       at com.juul.kable.Observers$acquire$$inlined$filter$1$2.emit(Observers.java:137)
       at kotlinx.coroutines.flow.SubscribedFlowCollector.emit(SubscribedFlowCollector.java:2)
       at kotlinx.coroutines.flow.SharedFlowImpl.collect(SharedFlowImpl.java:351)
       at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend(SharedFlowImpl.java:12)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:106)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:571)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.java:750)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java:678)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:665)
@twyatt
Copy link
Member Author

twyatt commented Nov 30, 2021

After further investigation, it seems likely that the peripheral being communicated with is sending an invalid/corrupt CoAP message.

@twyatt twyatt closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant