I have some weird behaviour with kotlinx.html gene...
# ktor
g
I have some weird behaviour with kotlinx.html generated pages that are not complete. Did somebody experienced that?
m
Yeah, I've gotten that. kotlinx.html has the pretty annoying behavior that exceptions are silently swallowed, and the generated output stops where the exception was thrown. Try pulling logic outside of the builder to see if it's throwing.
👍 1
o
@cy I thought we fixed it at some moment?
m
might well be fixed by now; I haven't investigated recently
g
I have no error, half of the page comes back with a nice 200 code. 😉
m
step through the builder dsl in the debugger
👍 1
g
@orangy You shouldn’t have asked for what we like least just after my post… I’m experiencing it now: when there is problem it is sometimes very difficult to find it.
No stacktrace, and debugging ends in places where we should be.
and where the debugger is not able to help us enough.
image.png
At the end, I think the problem comes from
Compression
(which I don’t need).
I listened what you told me during KotlinConf @orangy 😉.