Anders Sveen
11/17/2021, 10:44 AMlaunch(<http://Dispatchers.IO|Dispatchers.IO>) { ... }
It does return 200 fast, but wait with the payload till after launch completes. Any pointers on how to achieve this? 🙂Mitchel Nijdam
11/17/2021, 10:53 PMlewik
11/18/2021, 2:37 PMAlex Styl
11/18/2021, 5:00 PM-t installDist
) would cause the page to load forever after a change is made. The only way to fix this is by stopping the server and running it again. It has started becoming much more frequent lately.
Does anyone else get that?Łukasz Kłosiński
11/18/2021, 8:54 PMfun Route.test() {
get("/test") {
call.respondText(
buildString {
appendHTML().div {
insert(TestTemplate(), TemplatePlaceholder())
}
}
)
}
}
To make it work I have to wrap my TestTemplate in another div.
<div>
<div>this is the element I want to get, without the outer element</div>
</div>
Is there a way of doing it so I can send the actual template only, so I can get below:
<div>this is the element I want to get, without the outer element</div>
jmfayard
11/19/2021, 12:47 PMJavier
11/19/2021, 12:52 PMdarwin
for example. in general I find difficult to know how to setup a project which targets everything and uses a ktor clientDidier Villevalois
11/19/2021, 2:45 PMktor-io
and ktor-network
as implementation dependencies for my common
source set, I now have an error "Could not resolve io.ktor:ktor-io:2.0.0-SNAPSHOT" that I don't understand. I found lots of similar errors in the Slack search but none hints me at what the problem is. This was working fine when I was using ktor 1.6.4-SNAPSHOT and Kotlin 1.5.31.
(Gradle configuration and full error in thread.)
Does anyone know what can be the problem ? Thanks in advance for you help.Trond Øydna
11/19/2021, 4:10 PMjava.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
using ktor-server-tests.
I've not been able to find any other reports of this error here or on YouTrack.
In the failing tests I'm making a mock request using io.ktor.server.testing.handleRequest
.
This has been working fine up until 1.6.5
Any ideas on what might cause this?
I've added more details in thread.
Edit: It seems it could be the JDK version, tests fail on 8 but not on 17.
My JVM target is 1.8 and I'm dependent on kotlin-stdlib-jdk8Jamal Khan
11/20/2021, 12:30 AMRuben Quadros
11/21/2021, 1:21 PMJohn O'Reilly
11/23/2021, 9:59 AMstaticRootFolder
right now as part of Ktor server. Not sure this question makes sense....but wondering if there should be way to specify multiple folders?Nikky
11/24/2021, 11:12 AM-lcurl
.. which dependency do i need to install ? i assume some mingw-curl
or is this something to be configured in the buildscript ?
for now i am trying this in archlinux on WSL2, because i can easily try the binaries on the hostMarko Kunic
11/24/2021, 12:08 PMwithApplication(testEnv)
it doesn't load my module that is defined in application.conf
but when I do withTestApplication(Application::main)
it loads the module but the configuration is missing, not sure what am I doing wrong here?Emil Kantis
11/24/2021, 9:46 PMHttpClient.get<T>()
causes compilation to fail with Annotated types are not supported in typeOf
http.get<BaseResponse<@Serializable(with = ItemSerializer::class) Item>>("/v1/items/$id")
Failed to find anything related on google/youtrack/github . Filed a YT-issue here, but would be happy to close if someone can help me figure out what I’m doing wrong, or why this shouldn’t work, in general..Raymond Boswel
11/25/2021, 1:07 PMRahul Rawat
11/25/2021, 2:45 PMRuben Quadros
11/25/2021, 3:53 PMHttpResponsePipeline.Transform
for that. I want to know if we can parse error response from server as well at this point? Any help would be great! Code in thread.Dennis Schröder
11/26/2021, 7:36 AMAlexandre Brown
11/27/2021, 1:53 PMnordiauwu
11/29/2021, 10:43 AMRaymond Boswel
11/29/2021, 10:54 AMRobert Jaros
11/29/2021, 11:51 AMMarko Kunic
11/29/2021, 5:13 PMAlex Styl
11/29/2021, 8:17 PM./gradlew run
makes gradle get stuck. Currently at 8minutes inEmirhan Emmez
11/30/2021, 8:23 AMNikky
11/30/2021, 12:21 PMEmirhan Emmez
11/30/2021, 12:32 PMsingle<UserDataSource> { UserDataSourceImp() }
single { UserController(get()) }
Is anyone get this error about koin di?Nikola Milovic
11/30/2021, 5:53 PMFileList
(which contains the actual Files) from React Input of type file
. But I haven't found a way to append them to FormData. I tried using the org.w3c.xhr.FormData
but I get the error
IllegalStateException: Fail to serialize body. Content has type: class null, but OutgoingContent expected.
But when I try to use the Ktors io.ktor.client.request.forms
FormData, there is no override for append
that accepts File typeAlex Styl
11/30/2021, 6:06 PMAlex Styl
11/30/2021, 6:06 PMAleksei Tirman [JB]
11/30/2021, 6:58 PMembeddedServer(CIO, port = 3333) {
val app = this
routing {
get("/") {
call.respondText { app.environment.developmentMode.toString() }
}
}
}.start(wait = true)