https://kotlinlang.org logo
#ktor
Title
g

gaetan

11/07/2018, 4:01 PM
I have some weird behaviour with kotlinx.html generated pages that are not complete. Did somebody experienced that?
m

mp

11/07/2018, 4:03 PM
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

orangy

11/07/2018, 4:04 PM
@cy I thought we fixed it at some moment?
m

mp

11/07/2018, 4:04 PM
might well be fixed by now; I haven't investigated recently
g

gaetan

11/07/2018, 4:06 PM
I have no error, half of the page comes back with a nice 200 code. 😉
m

mp

11/07/2018, 4:06 PM
step through the builder dsl in the debugger
👍 1
g

gaetan

11/07/2018, 6:55 PM
@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 😉.