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
  • s

    Shawn

    05/01/2019, 1:30 AM
    sanity check - is hot reloading still broken for JDK >8
    n
    c
    • 3
    • 11
  • c

    cy

    05/01/2019, 7:00 AM
    📣 ktor
    1.2.0-rc
    has been released. See changelog for details: https://github.com/ktorio/ktor/blob/master/CHANGELOG.md
    🎉 8
    👏 4
    d
    s
    e
    • 4
    • 9
  • n

    napperley

    05/02/2019, 1:38 AM
    Puzzled with the JSON deserialization error from the Ktor Client library (using version 1.1.4 with Gson 2.8.5) on Android: Fail to run receive pipeline: io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.client.engine.android.AndroidHttpResponse -> class kotlin.Array Why does the error mention AndroidHttpResponse?
    g
    • 2
    • 6
  • g

    guyheylens

    05/02/2019, 3:22 PM
    When you create a new project in Intellij through the ktor plugin I saw that in the Application.Module there is a default parameter testing assigned to false. What is the purpose of this parameter?
    Application_module_parameter.kt
    d
    • 2
    • 1
  • n

    Nikky

    05/03/2019, 9:56 PM
    Right now, client WebSockets are only available for the CIO Client Engine.
    and CIO is not available for js as far as i can see i oiginally inteded to use websockets because people told me its built into the browser/js, so i thought it would be available in the
    JS
    client or was i just blind and there is a multiplatform js artifact for CIO and websockets?
    s
    n
    d
    • 4
    • 6
  • g

    galex

    05/05/2019, 4:28 AM
    https://kotlinlang.slack.com/archives/C3PQML5NU/p1557030473367700
    e
    • 2
    • 1
  • n

    napperley

    05/06/2019, 1:07 AM
    Really struggling to get the Android client (uses Ktor Client) to obtain data (via a HTTP POST) from the server (uses Ktor Server) without the client showing a timeout or connection reset. The average size of the response body (JSON data) that the client should receive is around 1.3 MB (works using Postman). Is there a way to buffer the response body? Is compression enabled by default with Ktor Server?
    👀 1
    e
    • 2
    • 3
  • f

    Fredrik Pe

    05/06/2019, 2:23 PM
    Why is the parallel example on this page https://ktor.io/clients/http-client.html using two HttpClients? My tests seem to work fine in parallel with just one...
    e
    • 2
    • 2
  • r

    RandomBK

    05/07/2019, 3:39 AM
    is there an application call pipeline stage that gets executed at the end of a call?
    b
    z
    • 3
    • 4
  • o

    obobo

    05/07/2019, 9:49 PM
    I'm getting
    kotlinx.coroutines.JobCancellationException: ClosedReceiveChannelException was cancelled
    Caused by: kotlinx.coroutines.channels.ClosedReceiveChannelException: Channel was closed
    when calling a google API (`https://maps.googleapis.com/maps/api`) using the CIO client. The problem is that once I see this exception the client never recovers. I'm able to reproduce this pretty consistently if I run the call many times in a row. I've had a hard time pinpointing the problem, but it seems to be tied to TLS negotiation.
    e
    • 2
    • 2
  • r

    Rainer Schlonvoigt

    05/09/2019, 12:31 PM
    probably really stupid question, but is there an api for getting progress updates when e.g. performing a get request for a large binary object?
    c
    • 2
    • 2
  • b

    bjonnh

    05/09/2019, 4:14 PM
    what is a clean way to have the same code for get("/") and post("/") ?
    d
    p
    • 3
    • 7
  • n

    napperley

    05/10/2019, 3:20 AM
    Are there any future plans to support Protocol Buffers ( https://developers.google.com/protocol-buffers/ ) with both Ktor Server and Client?
    c
    • 2
    • 1
  • a

    amatkivskiy

    05/10/2019, 4:26 AM
    hi all, I am new to ktor. I am wondering wether it is possible to schedule requests from ktor server to other services (meaning that this requests will happen periodically)?
    c
    d
    • 3
    • 3
  • g

    galex

    05/10/2019, 5:38 AM
    Hello, can I build a streaming service with Ktor?
    c
    r
    • 3
    • 4
  • c

    Cláudio Bartolomeu

    05/10/2019, 8:58 PM
    Hi, I am developing a client feature which retries the request in some cases. Which pipeline and phase best fit for an interceptor like this? For instance in the case of connection refused exception where should I handle it?
    👍 1
    e
    f
    t
    • 4
    • 4
  • n

    napperley

    05/13/2019, 7:20 AM
    Is it possible to cancel a long running HTTP request without having a exception thrown?
    e
    • 2
    • 5
  • r

    Robert Jaros

    05/13/2019, 2:28 PM
    I'm getting errors when resolving dependencies after upgrade from 1.1.4 to 1.1.5 - "Could not find io.ktor:ktor-server-core:1.1.5". I have
    jcenter()
    repository in my
    build.gradle
    . Is 1.1.5 the official release?
    • 1
    • 1
  • j

    Jonathan Mew

    05/13/2019, 3:43 PM
    I'm curious as to the thinking behind the structuring of features
    r
    • 2
    • 13
  • r

    ribesg

    05/14/2019, 8:30 AM
    🎉 https://github.com/ktorio/ktor/commit/2c2740ecdcc15790f3014eed5a04afb9c2df7eb1
    🤘 2
    🚀 1
    🎉 15
    c
    • 2
    • 2
  • z

    zjuhasz

    05/14/2019, 3:30 PM
    In the 1.2.0 change log it says KotlinxSerializer moved to a separate artifact. What is the new artifact?
    q
    • 2
    • 3
  • m

    Matthew Browning

    05/14/2019, 5:49 PM
    Hello All, was wondering if anyone would be able to help be understand configuration with ktor. I’m currently running the server via EngineMain and I’d like to be able to get properties from my application.conf elsewhere in my application. Which I’ve been able to do using
    val config = HoconApplicationConfig(ConfigFactory.load())
    but that seems to only load the application.conf from resources. Is there a way to get that sort of functionality but also have it work when supplying a conf file using the
    -config=application-prod.conf
    argument when running the server? If anyone would be willing to steer me in the right direction, I’d highly appreciate it. Thanks!
    f
    m
    • 3
    • 5
  • c

    coder82

    05/15/2019, 11:59 AM
    I am trying to use the kotlin deserializer without strict mode but it still complains about fields I don't declare in the data class but are present in the JSON.
    -.js
    j
    r
    • 3
    • 12
  • a

    Antanas A.

    05/15/2019, 12:11 PM
    Hi, just tried to use 1.2.0 ktor and got gradle error: > Could not find io.ktor:ktor-client-websocket:1.2.0. How can I fix this?
    e
    m
    • 3
    • 10
  • r

    ribesg

    05/15/2019, 1:31 PM
    Damn, just like
    HeadersBuilder
    ,
    ParametersBuilder
    can only be built once. Why?
    • 1
    • 1
  • q

    qlitzler

    05/16/2019, 1:29 PM
    Did someone encounter this
    java.lang.AbstractMethodError: io.ktor.client.engine.mock.MockEngine.install(Lio/ktor/client/HttpClient;)V
    after upgrading to Ktor 1.2.0 🤔
    e
    • 2
    • 3
  • q

    qlitzler

    05/16/2019, 1:35 PM
    @e5l
    -.kt
    • 1
    • 2
  • s

    Slackbot

    05/16/2019, 3:29 PM
    This message was deleted.
    j
    c
    d
    • 4
    • 8
  • t

    Thomas

    05/16/2019, 4:05 PM
    After updating to Ktor
    1.2.0
    I keep getting this error (on Android). I have no idea what this error means. Ktor
    1.2.0-alpha-1.3.0-eap-125
    works fine and
    1.2.0-rc
    gives the error as well. One of these commit probably broke my app: https://github.com/ktorio/ktor/compare/1.2.0-alpha-1.3.0-eap-125...1.2.0-rc. Could someone help me out please?
    Untitled.txt
    c
    • 2
    • 5
  • d

    davidasync

    05/17/2019, 1:59 AM
    Hello, I'm interested to know, is there any reason why
    netty
    not included to ktor http client engine ?
    e
    c
    • 3
    • 3
Powered by Linen
Title
d

davidasync

05/17/2019, 1:59 AM
Hello, I'm interested to know, is there any reason why
netty
not included to ktor http client engine ?
e

e5l

05/17/2019, 4:19 AM
Hi @davidasync; There are no reasons. PR’s are always welcome 🙂
✔️ 1
c

cy

05/17/2019, 7:25 AM
Well, IMHO the reason is that it is relatively difficult to implement a production quality client over Netty that does support everything we need. I'd say much more difficult than over apache or anything else. The only exception is CIO that is really complex.
However there is no reason to not include netty client engine
View count: 2