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

[Bug] Rocket.Chat connector gets an exception during connection #1457

Open
serjk opened this issue Feb 22, 2023 · 0 comments · May be fixed by #1458
Open

[Bug] Rocket.Chat connector gets an exception during connection #1457

serjk opened this issue Feb 22, 2023 · 0 comments · May be fixed by #1458
Labels

Comments

@serjk
Copy link

serjk commented Feb 22, 2023

I've tested Rocket.Chat connector. During connection process gets an exception:
Exception in thread "DefaultDispatcher-worker-1 @coroutine#8" java.lang.NoSuchMethodError: 'boolean kotlinx.coroutines.channels.Channel.isFull()' at chat.rocket.core.internal.realtime.socket.Socket$onMessage$$inlined$let$lambda$2.invokeSuspend(Socket.kt:349) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [CoroutineId(8), "coroutine#8":StandaloneCoroutine{Cancelling}@72c89528, Dispatchers.Default]

The problem is that rocket.chat connector uses rocket.chat.sdk which requires the old coroutine lib(v.1.1.1).
https://github.com/RocketChat/Rocket.Chat.Kotlin.SDK/blob/app-3.5.1/dependencies.gradle

Tock uses newer coroutine lib version (v.1.6.4)

tock/pom.xml

Line 35 in a56f860

<couroutine>1.6.4</couroutine>

Rocket.Chat.sdk contains the fix but only on develop branch.There is no release to publish to mvn repository.
https://github.com/RocketChat/Rocket.Chat.Kotlin.SDK/blob/develop/dependencies.gradle#L5

@serjk serjk changed the title Rocket.Chat connector gets an exception during connection [BUG] Rocket.Chat connector gets an exception during connection Feb 27, 2023
@serjk serjk changed the title [BUG] Rocket.Chat connector gets an exception during connection [Bug] Rocket.Chat connector gets an exception during connection Feb 27, 2023
@francoisno francoisno added the bug label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants