Weird internal coroutines machinery exception
I have some code that looks like this:
6 Replies
the exception:
has anyone seen anything like this? or has a guess on what the culprit is?
there's a YouTrack bug report for the same exception, although I don't see how my code could fit in their scenario... anyways, it's supposedly fixed in 1.7.20, yet I'm using 1.8.20
https://youtrack.jetbrains.com/issue/KT-50832/Method-references-to-suspend-inline-functions-are-processed-incorrectly
https://github.com/ktorio/ktor/blob/39be9e5594e823710ad1603478294ac75c3cb5ac/ktor-client/ktor-client-core/common/src/io/ktor/client/HttpClient.kt#L191
mentioned Ktor line --^
GitHub
ktor/HttpClient.kt at 39be9e5594e823710ad1603478294ac75c3cb5ac · kt...
Framework for quickly creating connected applications in Kotlin with minimal effort - ktor/HttpClient.kt at 39be9e5594e823710ad1603478294ac75c3cb5ac · ktorio/ktor
When did this start happening?
I've seen manifestations of this error for quite a while, but it has always been so darn unpredictable I never managed to debug it. But now, I'm consistently getting it in this piece of code.
or so it seems, at least
I've never seen it
:(