https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
ktor
  • n

    Nikky

    12/10/2019, 5:04 PM
    in my
    application.conf
    i have
    port = ${PORT}
    this works fine on heroku and when this is set in the environment, but can i somehow set eg.
    8080
    as fallback ? could not find how to do that in the HOCON spec
    z
    • 2
    • 6
  • v

    voben

    12/10/2019, 10:50 PM
    Can I have 2 HOCON files for the based on the environment in which I am running(locally vs on Google cloud)? If so how do I tell the system which one to choose?
    c
    • 2
    • 3
  • m

    mben

    12/11/2019, 5:22 PM
    Hello trying to get ktor to work inside my kotlin multiplatform project but when i build my ios app using the shared library i get Unresolved reference io. i'm using gradle 6.0 and ktor 1.2.4 and kotlin 1.3.50 maybe it's a wrong combinaison of versions between kotlin ktor and gradle?
    d
    e
    • 3
    • 6
  • b

    Brendan Weinstein

    12/12/2019, 3:49 AM
    For use of the ktor client within an android app should we ever close the client? https://ktor.io/clients/http-client/call/requests.html For okhttp, we typically reuse one instance of the client throughout the app. Both clients have an initialization cost. Given that cost, it makes sense to me to leave the ktor client open for an application session. Are there any potential consequences?
    e
    • 2
    • 3
  • m

    Max Raskin

    12/13/2019, 1:15 PM
    Hi, I'm using ktor with Mutiplatform, when performing an HTTP POST from a background thread on iOS, I'm getting an exception about a global in ktor not annonated as SharedImmutable, that global is in
    ktor-client/ktor-client-core/common/src/io/ktor/client/features/DefaultResponseValidation.kt
    its name is:
    ValidateMark
    using 1.3.0-beta-2 tag, may I contribute a fix with it annotated as
    @SharedImmutable
    ?
    e
    • 2
    • 3
  • c

    Cyberpunk Keanu

    12/14/2019, 9:49 AM
    Am I missing some dependency? I'm trying to connect my ktor app to a MySQL database using Jetbrains Exposed Framework. According to the docs, this is how I should connect to the db, but then why is it unable to find the driver? Am I missing some gradle dependency?
    t
    s
    • 3
    • 3
  • j

    Jiri Bruchanov

    12/14/2019, 11:51 AM
    Hi, is there any min versions requirement of jvm/android for ktor-server ? I'm having some issues with running latest version
    1.3.0-beta-2
    on android 4.4 and 5 and probably any other with jvm1.6, because of
    java.lang.NoSuchMethodError: No virtual method toPath()Ljava/nio/file/Path; in class Ljava/io/File; or its super classes (declaration of '<http://java.io|java.io>.File' appears in /system/framework/core-libart.jar)
    also with
    1.3.0-beta-1
    I'm getting following ktor-server-netty
    java.lang.NoClassDefFoundError: io.ktor.application.ApplicationEvents$subscribe$1
            at io.ktor.application.ApplicationEvents.subscribe(ApplicationEvents.kt:22)
            at io.ktor.server.engine.BaseApplicationEngine.<init>(BaseApplicationEngine.kt:31)
            at io.ktor.server.engine.BaseApplicationEngine.<init>(BaseApplicationEngine.kt:21)
            at io.ktor.server.netty.NettyApplicationEngine.<init>(NettyApplicationEngine.kt:27)
            at io.ktor.server.netty.Netty.create(Embedded.kt:14)
            at io.ktor.server.netty.Netty.create(Embedded.kt:12)
            at io.ktor.server.engine.EmbeddedServerKt.embeddedServer(EmbeddedServer.kt:79)
            at io.ktor.server.engine.EmbeddedServerKt.embeddedServer(EmbeddedServer.kt:67)
            at io.ktor.server.engine.EmbeddedServerKt.embeddedServer(EmbeddedServer.kt:36)
            at io.ktor.server.engine.EmbeddedServerKt.embeddedServer$default(EmbeddedServer.kt:34)
            at com.scurab.android.anuitor.service.KtorServer.start(KtorServer.kt:50)
            ....
    ktor-server-jetty
    MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)
    c
    • 2
    • 8
  • h

    hooliooo

    12/16/2019, 12:31 PM
    Does Ktor 1.2.5 support Kotlin 1.3.60/61?
    e
    d
    • 3
    • 6
  • s

    spand

    12/17/2019, 10:38 AM
    Should the latests coroutines work with ktor 1.2.6 or should we always use the coroutines version depended on by ktor ?
    c
    • 2
    • 1
  • j

    Jose A.

    12/18/2019, 8:18 AM
    I have an endpoint in ktor performing a long calculation. Is there any way to interrupt it in case the client connection is closed? I've tried a simple route test with a loop and delays and the coroutine is not cancelled if the client closes.
    c
    • 2
    • 2
  • c

    Cristián Arenas

    12/18/2019, 3:39 PM
    I’m trying to update to 1.3.0-rc, and it gives me the following error:
    Unbound streaming [HttpResponse] is deprecated. Consider using [HttpStatement] instead
    Is there a migration guide or something? I don’t see anything relevant in here: https://ktor.io/quickstart/migration/1.3.0.html
    c
    • 2
    • 2
  • a

    Aleksey Chugaev

    12/18/2019, 9:16 PM
    Hi, I am using ktor client on iOS and trying to move API requests to background thread, but get this error:
    Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
    kotlin.native.IncorrectDereferenceException: Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
            kfun:kotlin.Throwable.<init>(kotlin.String?)kotlin.Throwable + 87
            kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception + 85
            kfun:kotlin.RuntimeException.<init>(kotlin.String?)kotlin.RuntimeException + 85
            kfun:kotlin.native.IncorrectDereferenceException.<init>(kotlin.String)kotlin.native.IncorrectDereferenceException + 85
            ThrowIncorrectDereferenceException + 137
            CheckIsMainThread + 25
            kfun:io.ktor.http.<get-URL_ALPHABET_CHARS>#internal + 35
            kfun:io.ktor.http.encodeURLPath@kotlin.String.()kotlin.String + 717
            kfun:io.ktor.http.takeFromUnsafe$ktor-http@io.ktor.http.URLBuilder.(kotlin.String)io.ktor.http.URLBuilder + 2278
            kfun:io.ktor.http.takeFrom@io.ktor.http.URLBuilder.(kotlin.String)io.ktor.http.URLBuilder + 263
    My code is
    ...
    withContext(workerDispatcher){
        val loginResponse = <http://client.post|client.post><LoginNetworkResponse>("$apiEndpoint/init/auth?v=1") {
                contentType(ContentType.Application.Json)
                body = LoginNetworkRequest(
                    ...
                )
            }
       ....
    }
    c
    • 2
    • 7
  • d

    Dmitri Sh

    12/20/2019, 1:26 AM
    asked earlier about ktor support for watchOS - looks like it was not available then and is available now. Tried it, and getting this error - kotlin.IllegalStateException: Failed to find HttpClientEngineContainer. Consider adding [HttpClientEngine] implementation in dependencies. Here is my sourceset, what lib do I need to add?
    sourceSets["watchosMain"].dependencies{
        implementation("org.jetbrains.kotlin:kotlin-stdlib-common:1.3.61")
        implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.3.3")
        implementation ("org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:0.14.0")
        implementation ("io.ktor:ktor-client-core-native:1.3.0-rc")
        implementation ("io.ktor:ktor-client-json-native:1.3.0-rc")
        implementation ("io.ktor:ktor-client-serialization-native:1.3.0-rc")
        implementation ("io.ktor:ktor-client-ios:1.3.0-rc")
        implementation ("io.ktor:ktor-client-cio:1.2.5")
    
    }
    d
    • 2
    • 2
  • s

    spierce7

    12/20/2019, 5:28 AM
    Is there any built in support for cron jobs in ktor?
    t
    l
    +2
    • 5
    • 4
  • a

    Ahsan Raza

    12/21/2019, 10:57 AM
    Hi, I just started backend with Ktor framework, I see documentation about ktor but there is no help about Database Connectivity and Staf like that So any Guide about Database Connection? @hhariri @Shan @Adriano Celentano
    h
    k
    +2
    • 5
    • 11
  • k

    kevindmoore

    12/23/2019, 5:13 AM
    Anyone have any suggestions on the best hosting site for ktor? I'm working with Heroku now but really don't like it
    f
    • 2
    • 7
  • s

    Sabeeh

    12/23/2019, 11:53 AM
    Is there any gradle plugin for auto generating objects for exposed from sql schema?
    t
    • 2
    • 2
  • n

    nrobi

    12/23/2019, 12:52 PM
    Did anyone struggle with
    kotlinx-serialization
    ? I’m using
    0.14.0
    , and I’m gettin pretty randomly
    java.lang.NoClassDefFoundError:
    , some time it works, some time it doesn’t 🤷
    d
    • 2
    • 1
  • k

    Kris Wong

    12/23/2019, 4:35 PM
    i have added this to my build file
    implementation("ch.qos.logback:logback-classic:1.2.3")
    per https://ktor.io/servers/logging.html, but still get the warning SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    d
    • 2
    • 3
  • s

    spierce7

    12/24/2019, 5:08 AM
    I maintain a Kotlin HTML Library, and one of the modules I provide involves integration with ktor. In use, I’m seeing exceptions eaten, and I think it has to do with my improper use of
    OutgoingContent
    . In the below linked code, the exception is happening inside of the
    func
    parameter after it’s been called. My guess is that at that point the return status code has already been chosen, which is too late, and why the exception handlers are ignored. https://github.com/ScottPierce/kotlin-html/blob/master/kotlin-html-ktor/src/main/kotlin/dev/scottpierce/html/ktor/RespondHtml.kt#L41-L58 The obvious solution is to write to a
    StringBuilder
    , then give the output
    String
    to the
    ByteWriteChannel
    , instead of writing directly to the
    ByteWriteChannel
    . I thought I’d ask: Is there is a better way I can handle this that I haven’t considered?
    c
    • 2
    • 2
  • j

    jlleitschuh

    12/26/2019, 5:49 PM
    https://twitter.com/JLLeitschuh/status/1210256191110230017?s=20
    c
    • 2
    • 1
  • f

    fkrauthan

    12/27/2019, 7:41 PM
    What is the recommended way to pass values (e.g. request headers or authentication) from ktor server to ktor client instances? Is there a simple context object that you can access globally or do I need to pass down any information manually? Or what is the recommended way?
    v
    c
    j
    • 4
    • 5
  • b

    Brendan Weinstein

    12/27/2019, 7:51 PM
    Is there a memory monitor graph in intellij for seeing real time heap usage similar to what we have in Android Studio or in the Heroku dashboard? Or is there a recommended plugin? I tried out an application called VisualVM but the memory usage I see for an application does not line up with what I see on our heroku metrics dashboard.
    c
    • 2
    • 4
  • c

    cy

    12/29/2019, 8:02 AM
    📣 Finally, we have the last release candidate,
    1.3.0-rc2
    It’s time to test and migrate, the final release is coming after New Year Holidays. See the migration page: https://ktor.io/quickstart/migration/1.3.0.html 🎄 Please note that we have long New Year Holidays here so no worries if we don’t respond quickly.
    🎉 8
    👍 2
    a
    n
    d
    • 4
    • 16
  • u

    4ntoine

    12/30/2019, 11:36 AM
    Hi, guys. I’m looking into ktor-client samples. Is it correct that ktor-client in it’s iOS example does the work in main (UI) thread (
    dispatch_get_main_queue()
    ): https://github.com/ktorio/ktor-samples/blob/86832e4fcfeb4de9da12b2ed3a0eaa0bed9795ab/mpp/client-mpp/src/iosMain/kotlin/io/ktor/samples/mpp/client/Dispatcher.kt#L7 Does it mean all networking (by ktor-client) happens in main thread actually? Android’s in contrast is executed in background thread (pooled) (
    Dispatchers.Default
    ): https://github.com/ktorio/ktor-samples/blob/86832e4fcfeb4de9da12b2ed3a0eaa0bed9795ab/mpp/client-mpp/src/main/java/io/ktor/samples/mpp/client/ApplicationDispatcher.kt#L5
    c
    • 2
    • 1
  • s

    Steve Young

    12/30/2019, 5:52 PM
    Hello, JB gurus, does ktor have websocket api for IOS now?
    👍 5
    d
    c
    • 3
    • 6
  • a

    altavir

    12/30/2019, 7:06 PM
    Client seems to be missing JS dependencies on 1.3.0-rc
    Untitled
    c
    • 2
    • 7
  • a

    Adam Hurwitz

    12/30/2019, 10:57 PM
    Is there a way to run Cron Jobs with Ktor? My end objective is to host a Cron Job written with Kotlin for the Coinverse Android app's backend service to populate data. Much appreciated! 🙏 https://stackoverflow.com/questions/59516599/how-to-run-cron-jobs-in-kotlin-ktor Also, Google has an interesting alpha outside of Ktor that could be a good alternative for running timed tasks to populate data, Using Kotlin with Google Cloud Functions: https://github.com/GoogleCloudPlatform/kotlin-samples/tree/master/functions
    c
    t
    • 3
    • 8
  • m

    Mikołaj Kąkol

    12/31/2019, 11:13 AM
    is
    io.ktor:ktor-client-auth
    ready for native?
    c
    n
    • 3
    • 9
  • d

    dave08

    12/31/2019, 2:27 PM
    If I try uploading a big ( > 1gig) file to Ktor, I get:
    at kotlinx.coroutines.DispatchedContinuation.resumeWith(Dispatched.kt:108)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at io.ktor.http.cio.MultipartKt$parseMultipart$1.invokeSuspend(Multipart.kt:319)
    at io.ktor.http.cio.MultipartKt.boundary(Multipart.kt:160)
    at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt.skipDelimiter(Delimited.kt:51)
    at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt.skipDelimiterSuspend(Delimited.kt:56)
    at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.ByteBufferChannel.lookAheadSuspend(ByteBufferChannel.kt:1828)
    at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt$skipDelimiterSuspend$2.invoke(Delimited.kt)
    at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt$skipDelimiterSuspend$2.invokeSuspend(Delimited.kt:58)
    <http://java.io|java.io>.IOException: Broken delimiter occurred
    what could this mean?
    c
    b
    • 3
    • 9
Powered by Linen
Title
d

dave08

12/31/2019, 2:27 PM
If I try uploading a big ( > 1gig) file to Ktor, I get:
at kotlinx.coroutines.DispatchedContinuation.resumeWith(Dispatched.kt:108)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.http.cio.MultipartKt$parseMultipart$1.invokeSuspend(Multipart.kt:319)
at io.ktor.http.cio.MultipartKt.boundary(Multipart.kt:160)
at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt.skipDelimiter(Delimited.kt:51)
at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt.skipDelimiterSuspend(Delimited.kt:56)
at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.ByteBufferChannel.lookAheadSuspend(ByteBufferChannel.kt:1828)
at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt$skipDelimiterSuspend$2.invoke(Delimited.kt)
at <http://kotlinx.coroutines.io|kotlinx.coroutines.io>.DelimitedKt$skipDelimiterSuspend$2.invokeSuspend(Delimited.kt:58)
<http://java.io|java.io>.IOException: Broken delimiter occurred
what could this mean?
c

cy

12/31/2019, 3:44 PM
Looks like a bug, we have similar reports but no stable repro yet
b

bitkid

01/08/2020, 9:40 AM
i get that too from time to time .. without being able to reproduce it consistently
maybe this is the problem https://stackoverflow.com/questions/58842957/is-it-possible-to-upload-large-files-to-ktor-netty-server
but even with that info and playing around with the buffer sizes i could not reproduce it
d

dave08

01/21/2020, 2:58 PM
We're still getting this error
<http://java.io|java.io>.IOException: Multipart preamble/prologue limit of 8192 bytes exceeded
on our server logs... anything new about this, or maybe a workaround @cy?
Or maybe this is a different problem? It's the same service that we're trying to upload files to...
On the client side we're getting a ReadTimeout...
On Ktor 1.2.3 (integrated with Micronaut's Ktor plugin -- but Ktor is being used to serve requests...)
Just tried with 1.3.0 and now I'm still getting:
2020-01-21 19:04:15	
at java.lang.Thread.run(Thread.java:748)
2020-01-21 19:04:15	
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
2020-01-21 19:04:15	
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
2020-01-21 19:04:15	
at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050)
2020-01-21 19:04:15	
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)
2020-01-21 19:04:15	
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)
2020-01-21 19:04:15	
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
2020-01-21 19:04:15	
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
2020-01-21 19:04:15	
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2020-01-21 19:04:15	
at io.ktor.server.netty.cio.RequestBodyHandler$job$1.invokeSuspend(RequestBodyHandler.kt:58)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.ByteWriteChannelKt.close(ByteWriteChannel.kt:165)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.ByteBufferChannel.close(ByteBufferChannel.kt:126)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.ByteBufferChannel.tryTerminate$ktor_io(ByteBufferChannel.kt:364)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.ByteBufferChannel.resumeReadOp(ByteBufferChannel.kt:2184)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.internal.CancellableReusableContinuation.resumeWith(CancellableReusableContinuation.kt:93)
2020-01-21 19:04:15	
at kotlinx.coroutines.DispatchedContinuation.resumeWith(DispatchedContinuation.kt:171)
2020-01-21 19:04:15	
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2020-01-21 19:04:15	
at io.ktor.http.cio.MultipartKt$parseMultipart$1.invokeSuspend(Multipart.kt:319)
2020-01-21 19:04:15	
at io.ktor.http.cio.MultipartKt.boundary(Multipart.kt:160)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.DelimitedKt.skipDelimiter(Delimited.kt:51)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.DelimitedKt.skipDelimiterSuspend(Delimited.kt:56)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.ByteBufferChannel.lookAheadSuspend(ByteBufferChannel.kt:1871)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.DelimitedKt$skipDelimiterSuspend$2.invoke(Delimited.kt)
2020-01-21 19:04:15	
at <http://io.ktor.utils.io|io.ktor.utils.io>.DelimitedKt$skipDelimiterSuspend$2.invokeSuspend(Delimited.kt:58)
2020-01-21 19:04:15	
<http://java.io|java.io>.IOException: Broken delimiter occurred
View count: 8