https://kotlinlang.org logo
Docs
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
  • r

    rnett

    05/24/2021, 9:00 PM
    I'm attempting to use the latest EAP
    2.0.0-eap-132
    for 1.5 support (and KT-46340), and it does not seem
    ktor-serialization
    is published. Is there a replacement? It's there up until
    2.0.0-eap-106
    .
    😕 1
    e
    n
    • 3
    • 4
  • m

    marstran

    05/25/2021, 11:00 AM
    Hi, Has anyone tried to run Ktor with embedded Jetty as an AppService in Azure? I'm able to get the app running (the logs says it started correctly), but I am unable to reach it. I am just getting a timeout. Not really sure if it's actually a Ktor-problem, but I tried to deploy the spring-boot example to the same app service, and that worked fine.
    d
    • 2
    • 3
  • h

    Henry

    05/26/2021, 12:18 AM
    I guess this has been asked before but I'm at a bit of a loose end. I'm adding transaction support to my ktor application and currently have an implementation that works like this:
    // All db calls in this block will be executed within a transaction, on a connection held in the coroutine context
    transactional {
        ...
    }
    As it stands it requires a call to a static method on application startup to initialise a tx manager which the
    transactional
    call then uses to execute the tx. This is hard to test. I'd instead like to inject a transaction manager into a parent coroutine context so it's available everywhere in the app without needing to initialise it via a static method. I looked at using a feature that intercepts the application pipeline to do this but I don't think it does what I need. Any ideas?
    r
    • 2
    • 2
  • e

    ESchouten

    05/26/2021, 10:24 PM
    Hi! I created a backend based on the Clean Architecture principles. Feedback would be very much appreciated! The application is separated into three modules: Domain, Usecases and Adapters • Domain module contains all entities, it's validation and repository interfaces • Usecases module performs actions on the domain entities and repositories and does authorization The domain and usecase modules do not have any external dependencies. • Adapter layer: each adapter is implemented as a standalone module, lowering dependence on specific frameworks and libraries and making them interchangable. The server module consumes all adapters (e.g. databases, (graphql) endpoints, authentication logic) GraphQL endpoints are auto-generated from the Usecases Used technologies: Ktor, JWT, Exposed, Flyway, KGraphQL/GraphQL generated endpoints. https://github.com/ESchouten/CleanArchitecture
    👍 2
    m
    p
    • 3
    • 4
  • s

    samuele794

    05/26/2021, 10:54 PM
    hi, i have a little issue with Ktor HttpClient when receive Json response
    io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class it.codingbunker.tbs.common.client.discord.model.DiscordOAuth2User
    client setting
    client.config {
                developmentMode = true
                install(Logging)
                defaultRequest {
                    host + BASE_API_URL
                    accept(ContentType.Application.Json)
                }
                install(JsonFeature) {
                    serializer = KotlinxSerializer(
                        kotlinx.serialization.json.Json {
                            prettyPrint = true
                            isLenient = true
                            ignoreUnknownKeys = true
                        }
                    )
                }
            }
    and i receive correct headers
    a
    • 2
    • 3
  • b

    ByFloRedstone

    05/27/2021, 7:17 AM
    Hey i want to create a web application with ktor 1.5.4. But what JDK is the best? Can i use the Latest? Is kotlin 1.5.1 compatible or do I have to use the 1.4.3?
    s
    r
    b
    • 4
    • 9
  • c

    Casey Brooks

    05/27/2021, 4:09 PM
    Did the API docs move, or is there an issue with the servers/publication of docs? I’m getting a 404 on https://api.ktor.io/
    ➕ 1
    s
    c
    a
    • 4
    • 3
  • r

    Renaud

    05/28/2021, 9:39 AM
    I have a Publication object and i’d like to insert a batch of them. Two options: 1. Insert only via the Entity
    for loop
      Publication.new { ... }
    2. Insert via entity table
    Publication.table.batchInsert
    1? 2? I’m not sure
    j
    • 2
    • 1
  • e

    enleur

    05/28/2021, 5:38 PM
    https://blog.jetbrains.com/ktor/2021/05/28/ktor-1-6-0-released/ 🎉
    🎉 12
    👍 7
    :kotlin-intensifies: 6
    👍🏼 1
    t
    • 2
    • 1
  • m

    mboudraa

    05/28/2021, 5:49 PM
    Hi folks, I migrated to kotlin 1.5.0 and ktor 1.6.0. I’m using the
    native-mt
    version of coroutines 1.5.0. I have a very simple test that fails on iOS with a
    kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlin.collections.HashMap@1657db08
    and I have no idea where it can come from given the simplicity of this test. If anyone has any lead, it would be very helpful
    Untitled.kt
    :youtrack: 1
    t
    r
    +2
    • 5
    • 9
  • h

    Hexa

    05/29/2021, 2:11 AM
    Is there an equivalent of Retrofit.Builder class in Ktor? See https://square.github.io/retrofit/2.x/retrofit/retrofit2/Retrofit.Builder.html
    e
    • 2
    • 1
  • t

    thanh

    05/29/2021, 9:13 AM
    Hello, is there any way or example to generate ktor client code (prefer KMM) from ktor server?
    c
    • 2
    • 3
  • c

    CLOVIS

    05/29/2021, 9:32 AM
    Does
    withTestApplication
    ignore authentication? It accesses an endpoint behind
    authenticate()
    without any specific setup
    r
    • 2
    • 4
  • d

    darkmoon_uk

    05/30/2021, 8:10 AM
    Has anyone successfully deployed a Ktor App that uses WebSockets to a WAR in Jetty Container? While making a simple example Web-App for Compose for Web I encountered this long standing, unresolved issue: • KTOR-184 Ktor tries to use
    HttpServletRequest.upgrade()
    which is not supported in Jetty ☠️ This appears to be a complete blocker for deploying WebSockets as a WAR in Jetty. Disturbing given that it's a very standard configuration for production usage 😱 Is anyone able to suggest a fix or workaround? Reproduction steps added to ticket.
    c
    e
    • 3
    • 10
  • g

    Guilherme Delgado

    05/31/2021, 12:54 PM
    Hello, This is my KMM Ktor client engine setup:
    actual fun getHttpEngine(): HttpClientEngine = OkHttp.create {
            OkHttpConfig().also {
                addInterceptor(chuckerInterceptor)
                it.config {
                    readTimeout(60, TimeUnit.SECONDS)
                    connectTimeout(60, TimeUnit.SECONDS)
                }
            }
        }
    but for some reason I’m receiving
    failed with exception: io.ktor.network.sockets.SocketTimeoutException: Socket timeout has expired [url=..., socket_timeout=unknown] ms
    after 10 seconds. Should I add this timeout settings in HttpClient? Thanks.
    r
    • 2
    • 5
  • e

    edenman

    06/01/2021, 3:56 AM
    hi, anybody know why OkHttpEngine was marked as internal API? https://youtrack.jetbrains.com/issue/KTOR-2757
    r
    • 2
    • 2
  • j

    João Rodrigues

    06/01/2021, 9:57 AM
    (X-Post from #server) Hey 👋 I'm developing a backend with Ktor, loving the framework so far! In some cases, I'll have to handle several (possibly large) responses from another backend, process them and forward them to my client. For now this is all rest, no web sockets. Is there anyway in Ktor to have a constant flow of responses to the client? Something like Spring WebFlux, I'd like to have a reactive flux of responses in Ktor. Have you ever implemented such thing with Ktor? Is it even possible as the framework stands today? Did you have success with any other framework? Thanks in advance 🙏
    c
    d
    • 3
    • 5
  • r

    Ray

    06/02/2021, 9:18 PM
    Hi all anyone here know of a library i can use to generate a pdf or excel in ktor that can be downloaded from the client side(web/mobile). i can't seem too find any
    b
    c
    m
    • 4
    • 5
  • a

    Ankit Dubey

    06/03/2021, 10:13 AM
    Hi, I’m stuck in adding interceptor and CertificatePinner in Default Engine of Ktor i.e.
    HttpClient()
    I came to know, that I can do it using HttpClient(OkHttp) engine, but in KMM project, I’m not allowed to add OkHttp dependency in shared/commonMain module. It’s saying
    Failed building KotlinMPPGradleModel
    org.gradle.internal.resolve.ArtifactNotFoundException: Could not find ktor-client-okhttp-1.6.0-samplessources.jar (io.ktor:ktor-client-okhttp:1.6.0).
    //Something I’ve achieve yet.
    var cert : CertificatePinner = CertificatePinner.Builder()
        .add(baseURL, "***************")
        .build()
    
    val ktorHttpClient = HttpClient(OkHttp) {
        engine {
            config {
                certificatePinner(cert)
            }
        }
    What I need
    val ktorHttpClient = HttpClient() {
    
        engine {
            //ADD CERTIFICATE PINNER
            //ADD INTERCEPTOR
        }
    e
    • 2
    • 3
  • r

    rusmonster

    06/03/2021, 11:30 AM
    Hi! What we have in the changelog for KTor 1.6.0 https://ktor.io/changelog/1.6/ regarding Client upload/download progress observer/handler/interceptor (https://youtrack.jetbrains.com/issue/KTOR-400)
    I assume currently it exists but I don't know how to do it, can somebody help me please 🙂 ?
    Also the following doesn't work (unresolved reference eventListener)
    val retMessage =  httpClient.request<Message> {
                eventListener = { event ->
                    println("${event.bytesSent / event.bytesTotal}% uploaded")
                }
            }
    So is there any support for progress observer introduced in 1.6.0 or not?
    r
    • 2
    • 1
  • d

    darkmoon_uk

    06/07/2021, 6:16 AM
    Ok this one is really killing me now:
    Could not resolve io.ktor:ktor-client-js:1.6.0
    error every time at Gradle sync. But... • The project does build and run ✅ • The artifact name is correct • I've added
    <https://repo1.maven.org/maven2/>
    repo directly to the using project • The artifact is there • All other Ktor artifacts are resolving just fine. • I've cleared
    build
    and
    ~/.gradle
    folders I am using
    js(IR){...}
    target, in case this has to do with resolving IR variant(?) ...nearly at a loss. Is anyone else seeing weird stuck artifact mis-resolution around Ktor?
    d
    e
    d
    • 4
    • 16
  • j

    Javier

    06/07/2021, 12:56 PM
    Is it possible a feature/plugin depends on another?
    e
    • 2
    • 8
  • j

    jeggy

    06/07/2021, 5:29 PM
    class XmlConverter : ContentConverter {
      override suspend fun convertForReceive(context: PipelineContext<ApplicationReceiveRequest, ApplicationCall>): Any?  {
        val request = context.subject
        val channel = request.value as? ByteReadChannel ?: return null
        val inputStream = channel.toInputStream()
        val reader = inputStream.reader(context.call.request.contentCharset() ?: Charsets.UTF_8)
        val type = request.type
        return convertForReceive(type.javaObjectType, reader::readText)
      }
    }
    Does anyone know why the
    .toInputStream()
    throws this exception?
    java.lang.IllegalStateException: Using blocking primitives on this dispatcher is not allowed. Consider using async channel instead or use blocking primitives in withContext(<http://Dispatchers.IO|Dispatchers.IO>) instead.
    io.ktor.utils.io.jvm.javaio.BlockingKt.ensureParkingAllowed(Blocking.kt:302)
    io.ktor.utils.io.jvm.javaio.BlockingKt.access$ensureParkingAllowed(Blocking.kt:1)
    io.ktor.utils.io.jvm.javaio.InputAdapter.<init>(Blocking.kt:30)
    io.ktor.utils.io.jvm.javaio.BlockingKt.toInputStream(Blocking.kt:20)
    io.ktor.utils.io.jvm.javaio.BlockingKt.toInputStream$default(Blocking.kt:20)
    com.apurebase.concur.server.XmlConverter.convertForReceive(XmlConverter.kt:28)
    This happened after I upgraded from kotlin 1.3 and ktor 1.1.3 to the latest versions.
    r
    • 2
    • 2
  • a

    Antero Duarte

    06/08/2021, 10:17 AM
    Hey, has anyone else noticed that start.ktor.io is down? Does anyone have any idea of when it will be back up?
    c
    • 2
    • 1
  • n

    Norbert Sziráczki

    06/08/2021, 1:48 PM
    This is on ktor 1.6.0, coroutines 1.5.0-native-mt and serialization 1.2.1, it was working perfectly with ktor 1.4.0 / coroutine 1.4.2-native-mt / serialization 1.0.0-RC The call is the following:
    <http://httpClient.post|httpClient.post><LoginResponse> {
                url { encodedPath = LOGIN_WITH_INIT_URL }
                body = TokenGenerationInput(username, password)
            }
    Any ideas on what's happening here?
    👍 1
    t
    m
    d
    • 4
    • 6
  • g

    Goth

    06/09/2021, 4:30 AM
    Anyone aware how do I checkout
    native-mt
    version of Ktor? I don't find either the git tag or release for native-mt version of Ktor repo.
    r
    • 2
    • 2
  • c

    CLOVIS

    06/09/2021, 8:16 AM
    Did someone manage to use JWT with a Ktor client? The documentation doesn't even say if it's possible or not
    a
    a
    • 3
    • 4
  • w

    william

    06/09/2021, 7:56 PM
    does the CIO server work on multiplatform? I know the CIO client does
    r
    • 2
    • 4
  • t

    Trevor Stone

    06/09/2021, 8:12 PM
    How important is it to close a ktor httpclient? Is it reasonable to have one kept around as a singleton that is never explicitly closed?
    e
    • 2
    • 3
  • g

    Goth

    06/09/2021, 11:19 PM
    I'm trying to compile ktor from github source code but facing below error. anyone else tried this out?
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (8, 17): Unresolved reference: file
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (15, 12): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (21, 12): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (21, 43): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (34, 12): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (34, 43): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (37, 13): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (37, 40): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (47, 43): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (50, 15): Unresolved reference: InvalidPathException
    e: ktor/ktor-utils/jvm/src/io/ktor/util/Path.kt: (21, 35): Overload resolution ambiguity:
    public fun [ERROR : Path].normalizeAndRelativize(): [ERROR : Path] defined in io.ktor.util in file NioPath.kt
    public fun File.normalizeAndRelativize(): File defined in io.ktor.util in file Path.kt
    e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (10, 17): Unresolved reference: file
    e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (17, 12): Unresolved reference: Path
    e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (25, 12): Unresolved reference: Path
    r
    • 2
    • 1
Powered by Linen
Title
g

Goth

06/09/2021, 11:19 PM
I'm trying to compile ktor from github source code but facing below error. anyone else tried this out?
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (8, 17): Unresolved reference: file
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (15, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (21, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (21, 43): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (34, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (34, 43): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (37, 13): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (37, 40): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (47, 43): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (50, 15): Unresolved reference: InvalidPathException
e: ktor/ktor-utils/jvm/src/io/ktor/util/Path.kt: (21, 35): Overload resolution ambiguity:
public fun [ERROR : Path].normalizeAndRelativize(): [ERROR : Path] defined in io.ktor.util in file NioPath.kt
public fun File.normalizeAndRelativize(): File defined in io.ktor.util in file Path.kt
e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (10, 17): Unresolved reference: file
e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (17, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (25, 12): Unresolved reference: Path
r

rnett

06/10/2021, 12:20 AM
I haven't done it myself, but are you using JDK < 7? That's the only thing I can think of that would cause nio to be missing.
:thank-you: 1
View count: 4