What is ktor trying to tell me here? How can I deb...
# ktor
What is ktor trying to tell me here? How can I debug this?
Copy code
2019-01-12 17:37:02.237 WARN  i.n.u.c.AbstractEventExecutor - A task raised an exception. Task: DispatchedContinuation[DispatcherWithShutdown@60dcb7b6, Continuation at com/github/fluidsonic/fluid/mongo/CoroutineMongoCollection.insertOne(CoroutineMongoCollection.kt:250)@735b9ac6]
kotlinx.coroutines.DispatchException: Unexpected exception running DispatchedContinuation[DispatcherWithShutdown@60dcb7b6, Continuation at com/github/fluidsonic/fluid/mongo/CoroutineMongoCollection.insertOne(CoroutineMongoCollection.kt:250)@735b9ac6]
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:237)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: No more continuations to resume
	at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(PipelineContext.kt:197)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:168)
	at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:63)
	at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(PipelineContext.kt:118)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:45)
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
	... 6 common frames omitted
@Czar posted this well Hi 🙂 ... I have couple of suggestions for you to make your stay here better, if you'll have it. .... 3. put multi-line (2-10) fragments in triple backtics: ` ``` ` (shortcut: select the fragment, then press
) 4. put longer fragments into code/text snippets via message Plus menu or
shortcut .....
Also, what does the erroring code look like? We need some more details and context.
I’m not new here and everything on your list is already done. The erroring code is in Ktor, that’s why I’m asking. I don’t know where to start looking for the cause issue since I don’t really understand from just the logged exception what Ktor is actually complaining about and how it can happen.
Sorry did not mean to imply you were new. Mostly meant item 4.
Are you getting the exception when launching the application or when a request is sent to your server?
Huh, that's the trouble with using canned responses, isn't it 🙂 My comment was written specifically for the message I commented on. As for max length of ` ``` ` formatted code, it is a matter of preference and debate, it isn't actually written into any policy I know of on this slack.
@tKw I think it was related to a request. It happened randomly but I didn’t notice it until looking in the logs 🤔
It’s also just a warning, not am error, which is also weird.