hyukchan
04/11/2019, 9:52 AMclass SdWsService(fileUtils: FileUtils) {
suspend fun getXmlFile(environment: String?, filename: String): String = dbQuery(environment) {
Inside getXmlFile, I do not have access to my fileUtils ...Patrick Jackson
04/11/2019, 3:23 PMribesg
04/12/2019, 8:05 AMlovis
04/12/2019, 9:25 AM"io.ktor:ktor-client-json:$ktor_version"
) in my build.gradle, and I see it (can even navigate into it) in IntelliJ.
But I can’t call install(JsonFeature)` . (“Unresolved Reference”)
I tried the fully qualified name, gradle clean
, and even deleting the whole ~/.gradle
folder. Nothing.
Hitting “build” tells me, that client-json requires “’org.jetbrains.kotlinx:kotlinx-serialization-common:0.10.0”, but adding that to dependencies also doesn’t help.
And also, it shouldn’t be that hard.
Any ideas?tjohnn
04/12/2019, 10:09 AMfun Routing.v1() {
route("/api/v1") {
posts()
}
}
I am getting fun Routing.posts() can't be called in this context by implicit receiver
robin
04/12/2019, 11:12 AMpost("/reflect") {
call.respondText(call.receiveText().also(::println))
}
When I send a request with special characters in it like this:
POST <http://localhost:8080/reflect>
Content-Type: text/plain
ÄÖÜäöüßẞ
It comes out as a jumbled mess:
ÃÃÃäöüÃáº
And it get's printed to the console exactly like that as well, so the problem has to be on the receiving side, not the sending side.
I'm not sure where to start looking what is going wrong here.ribesg
04/12/2019, 1:00 PMlovis
04/12/2019, 1:31 PMexpectSuccess = false
to control whetehr an exception should be thrown if the status is >= 300.
can I also have more fine-grained control out-of-the-box? E.g. allowing 404 but throwing otherwiseLawik
04/12/2019, 1:37 PMResponse<Foo>
Response<Bar>
JoakimForslund
04/12/2019, 2:03 PMribesg
04/12/2019, 2:36 PM.build()
on a HttpRequestBuilder
to get the attributes
already set on that builderspierce7
04/12/2019, 7:28 PMivanmorgillo
04/14/2019, 3:16 PMFelix
04/14/2019, 3:59 PMApplicationCallPipeline
into the 5 phases: Setup
, Monitoring
, Features
, Call
, and Fallback
?
Namely, what are the responsibilities of the interceptors in each phase?Felix
04/14/2019, 9:18 PMroute("/foo", HttpMethod.Get) {
install(ExampleFeature)
handle {...}
}
However the feature appears to run for all routes.ribesg
04/15/2019, 11:57 AMLawik
04/15/2019, 1:01 PMe5l
04/15/2019, 4:43 PM1.1.4
released!
It’s the minor release with kotlin 1.3.30
support.rodrigo
04/16/2019, 12:33 PMParent job is Completed
? Just wondering what I may be doing wrong 😕, the request seems fine from the loggerNikolai
04/16/2019, 12:46 PMmax.cruz
04/16/2019, 2:59 PMwarning: this class can only be used with the compiler argument '-Xuse-experimental=kotlin.Experimental'
@UseExperimental(KtorExperimentalAPI::class)
I’m trying to use IosHttpRequestException, but adding the mentioned option in kotlinOptions.freeCompilerArgs
seems not to work. Any suggestion to fix the warning? Thanks.napperley
04/16/2019, 11:21 PMSlackbot
04/17/2019, 6:14 AMJustin Tuchek
04/17/2019, 3:29 PMnapperley
04/18/2019, 1:10 AMSander Ploegsma
04/18/2019, 8:11 AM<meta prefix="og <http://ogp.me/ns#>" property="og:title" content="title" />
But the META
class doesn't seem to support the prefix
and property
attributes. Currently I'm using unsafe
to render the raw HTML, but I'd prefer not to.hdarritchon
04/18/2019, 1:16 PMhmole
04/19/2019, 7:02 AMcom/foo
and com/foo/***/***
should trigger the feature.Nikky
04/20/2019, 3:50 PMqlitzler
04/21/2019, 5:14 PMlogLevel = LogLevel.NONE
any call to httpClient.request<T>
will hang indefinitely.
If i put any other logLevel (LogLevel.ALL
for example), it works fine..
1.2.0-alpha-1.3.0-eap-125
works fine as well
I saw this in the 1.2.0 changelog:
Fixed LogLevel.NONE with body bytes
, is this related ?qlitzler
04/21/2019, 5:14 PMlogLevel = LogLevel.NONE
any call to httpClient.request<T>
will hang indefinitely.
If i put any other logLevel (LogLevel.ALL
for example), it works fine..
1.2.0-alpha-1.3.0-eap-125
works fine as well
I saw this in the 1.2.0 changelog:
Fixed LogLevel.NONE with body bytes
, is this related ?e5l
04/22/2019, 3:50 PMqlitzler
04/22/2019, 3:50 PM