mp
10/24/2018, 6:17 PMlegzo
10/25/2018, 11:35 AMlukaswelte
10/25/2018, 2:40 PMjcechace
10/25/2018, 4:13 PMio.ktor.client.features.BadResponseStatus: null
?
client.put<Unit>{
url("<http://host.com/apis>")
contentType(ContentType.Application.Json)
body = "{}"
}
Dias
10/25/2018, 4:45 PMrequireNotNull(getKey(sslKeyAlias, sslPrivateKeyPassword.toCharArray()) == null) {
"The specified key $sslKeyAlias doesn't exist in the key store $sslKeyStorePath"
}
in CommandLine.kt, but it hasn't been thrownDias
10/26/2018, 9:20 AMNGupta
10/26/2018, 9:38 AMNGupta
10/26/2018, 9:47 AMbootstraponline
10/26/2018, 2:11 PMKevin
10/26/2018, 8:50 PMorangy
10/26/2018, 9:05 PMcoletz
10/27/2018, 12:38 PMjdemeulenaere
10/27/2018, 5:17 PMNo transformation found: class JsHttpResponse -> class null
Robert Menke
10/28/2018, 12:35 AMclaudiug
10/28/2018, 6:33 PMspierce7
10/28/2018, 7:21 PMio.ktor:ktor-client-json-js
? Is there a way to use kotlinx.serialization with ktor?Narayan Iyer
10/29/2018, 12:50 PMJSON
response with KTOR? Tried and got this:
java.lang.IllegalArgumentException: Response pipeline couldn't transform 'class java.util.Collections$SingletonMap' to the OutgoingContent
at io.ktor.server.engine.BaseApplicationResponse$$special$$inlined$apply$lambda$1.invokeSuspend(BaseApplicationResponse.kt:38)
at io.ktor.server.engine.BaseApplicationResponse$$special$$inlined$apply$lambda$1.invoke(BaseApplicationResponse.kt)
at io.ktor.util.pipeline.PipelineContext.proceed(PipelineContext.kt:53)
at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:24)
Checked out the documentation and saw this: install(ContentNegotiation)
... but documentation is sketchy ... any ideas?mp
10/29/2018, 1:38 PMdimsuz
10/29/2018, 5:12 PM1.0.0-beta-3
and kotlin 1.3.0
, but I cant run the server.
I try this:
$ ./gradlew run
> Task :run FAILED
Exception in thread "main" java.lang.IllegalArgumentException: Neither port nor sslPort specified. Use command line options -port/-sslPort or configure connectors in application.conf
at io.ktor.server.engine.CommandLineKt$commandLineEnvironment$environment$1.invoke(CommandLine.kt:121)
at io.ktor.server.engine.CommandLineKt$commandLineEnvironment$environment$1.invoke(CommandLine.kt)
at io.ktor.server.engine.ApplicationEngineEnvironmentBuilder.build(ApplicationEngineEnvironment.kt:95)
at io.ktor.server.engine.ApplicationEngineEnvironmentKt.applicationEngineEnvironment(ApplicationEngineEnvironment.kt:40)
at io.ktor.server.engine.CommandLineKt.commandLineEnvironment(CommandLine.kt:50)
at io.ktor.server.netty.EngineMain.main(EngineMain.kt:16)
Although I have perfectly valid port in `resources/application.conf`:
ktor {
deployment {
port = 8080
}
application {
modules = [ com.example.ApplicationKt.module ]
}
}
What am I doing wrong?mp
10/29/2018, 5:39 PMSimplifiedSessionStorage
example on https://ktor.io/servers/features/sessions/storages.html, what is the (not shown) getCoroutineContext()
supposed to do in practice? Also that form of reader()
is deprecated now -- CoroutineScope.reader
is probably what it should be, but on what scope?Jonas Bark
10/29/2018, 5:48 PMinstall(JsonFeature) {
serializer = KotlinxSerializer().apply {
register(StartPage.serializer())
}
}
The same code works just fine on iOS & Android
Am I missing something here?Jonathan
10/30/2018, 8:57 AMRobinVdB
10/30/2018, 12:24 PMfunctionaldude
10/30/2018, 2:25 PM0.9.5
) project to Kotlin 1.3.0
, but somehow this seems unsupported. Im using the new kotlinx-coroutines-core
(version 1.0.0
) but ktor still uses the older version, where many functions and classes are in the experimental package, therefore I always get a NoClassDefFoundError
. Do you have any suggestions how to fix this? Or do I need to update ktor to 1.0.0-beta3
?orangy
10/31/2018, 9:30 AMSaša Šijak
10/31/2018, 2:08 PMsannysoft
10/31/2018, 2:32 PMnapperley
11/01/2018, 12:48 AMHamza
11/01/2018, 5:49 AMSaša Šijak
11/01/2018, 6:04 AMSaša Šijak
11/01/2018, 6:04 AMsannysoft
11/01/2018, 8:27 AMkenkyee
11/01/2018, 10:21 AMSaša Šijak
11/01/2018, 11:11 AM