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
server
  • f

    fwilhe

    09/10/2020, 12:30 PM
    I was wondering why there was no GitHub Action to setup Kotlin cli compiler, so I've built one: https://github.com/marketplace/actions/setup-kotlin Sure, that's not required if you use Gradle, Maven etc, but for scripting it might be useful. You can also provide a script to the action which will directly be executed. I don't know if this is useful to anyone, but I can see uses in small scripts in your ci pipelines where you would prefer Kotlin over Bash or Python. (not sure if this is the right cannel for this)
    👍 2
    d
    • 2
    • 4
  • j

    Júlio Santos

    09/10/2020, 7:39 PM
    Hello everyone, everything good? I'm using ktor and I want to use
    "'Access-Control-Allow-Origin': '*'"
    , has anyone done this?
    j
    • 2
    • 7
  • p

    Poohrang

    09/12/2020, 2:38 PM
    Hello everyone, I've just joined this channel. and I'm developing Rest API server using ktor. I'm curious about that how do I allow to access files from Client side. From my understanding, there is static feature, it can provide static data such as resources, files, and so on. in static directory of this project. is it right? but it seems to be not enough for it. First of all, the client(Android App) sends some image files throgh MultiPart. the receive files are stored in specific directory, for instance (d:\\service\images\) The problem is that I don't know how to access above directory to download or load images in client side. My expected url is "

    http://www.domain.com/images/pic.png▾

    " Is it possible to provide for ktor? Anyone have any ideas? Thanks in advance.
    b
    • 2
    • 14
  • j

    Júlio Santos

    09/15/2020, 2:00 PM
    Hey guys! Does anyone here have an example of Ktor integration testing?
    b
    d
    • 3
    • 11
  • v

    Vladyslav Sitalo

    09/15/2020, 9:14 PM
    what’s the current best Kotlin vs Java article to point people to? 🙂
    n
    • 2
    • 2
  • a

    asad.awadia

    09/18/2020, 2:19 AM
    https://aawadia.hashnode.dev/backend-development-in-kotlin-ckf7lvtlj00oj6ds125zi9j5l
    👍 5
    k
    • 2
    • 2
  • s

    Sangeet Narayan

    09/18/2020, 2:22 AM
    Hello all. I was just working on a full stack application with Kotlin and right now working on the backend. Kotlin + Spring combination looks good to me. Was just wondering whether I can use all the features of GraphQL properly with this combination because I didn't find any information regarding GraphQL on Spring's website.
    a
    j
    +4
    • 7
    • 19
  • a

    Ayodele

    09/21/2020, 2:30 PM
    Please anyone
    n
    s
    j
    • 4
    • 10
  • j

    Júlio Santos

    09/24/2020, 2:02 PM
    I'm passing the Google rechapta token in the Header, and CORS is giving an error. has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. What do I need to enable in CORS?
    a
    • 2
    • 6
  • j

    Júlio Santos

    09/30/2020, 6:03 PM
    Speak up, guys! I'm putting together a clause where exposed this way 
    Employee.select { Employee.id = id and (Employee.name = name)}
     is that correct?
    m
    a
    • 3
    • 2
  • n

    Nicodemus Ojwee

    10/03/2020, 11:08 AM
    Hello guys. I am using kotlinx.serialization in my ktor api and have a data class as below.
    @Serializable
    data class User(
      var email: String = "", 
      @JsonIgnore var password: String = ""
    )
    Which annotation can i use on the password field to ignore it "only" in the http response but not within the application. For example Ignore it when:
    get {
        call.respond(User("email", "some password"))
    }
    Don't ignore it when:
    fun checkUserPassword(email: String) {
        val user = getUserPasswordFromDatabaseByEmail<User>(email)
        // The print below does not work (I want it to work since it is not yet part of the response)
        println(user.password)
    }
    m
    m
    • 3
    • 3
  • a

    Abishek Dulal666s

    10/05/2020, 7:05 PM
    Can anyone give example of kotlin spring and jwt.
    :google: 7
    a
    m
    +2
    • 5
    • 4
  • s

    Slackbot

    10/10/2020, 12:40 PM
    This message was deleted.
    a
    j
    • 3
    • 5
  • s

    Siva Ganesh

    10/12/2020, 4:18 PM
    Does anyone worked on ktor with AWS lambda, if so can you share a GitHub repo.
    n
    c
    +2
    • 5
    • 13
  • e

    etolstoy

    10/15/2020, 12:12 PM
    Hey everyone! I’m Egor, product manager in the Kotlin team. I’m conducting a series of interviews with newcomers in Kotlin for Server-side. I’m interested to talk both to people who had experience with server-side with other languages and to those who came from Android or somewhere else. My goals are to: - Understand how and why people decide to try Kotlin - Understand how exactly they try Kotlin for the first time - Collect pain points in their onboarding process If you’re interested to help our team make the onboarding process better – feel free to write me in direct messages :)
    :yes: 7
    👏 1
    👍 9
    💯 14
    :thumbsup_all: 1
    j
    r
    +4
    • 7
    • 7
  • r

    Rishav Sharan

    10/16/2020, 10:30 PM
    Struggling a bit on getting started with kooby. the cli is not really working for me. Can someone share the steps to create a kooby app using intellij?
    r
    • 2
    • 1
  • h

    Hai Tran

    10/18/2020, 1:52 PM
    Hi everyone, I’m an android developer, Now I want to start a server project, I have decided to start with Ktor, so what IDE can compile Kotor (Or something like Ktor, ex: Http4k ...)? I used Android Studio for Android before, can I use it for server purpose?
    k
    f
    +2
    • 5
    • 5
  • a

    Ahmed Tikiwa

    10/23/2020, 8:51 AM
    Hi All 👋 Anyone know when this TODO will be updated? Need guidance on deploying Ktor to remote Ubuntu server - either a Docker deploy or other working Ktor + Linux server setup 🙏
    👍 1
    b
    n
    • 3
    • 7
  • m

    marzelwidmer

    10/29/2020, 11:55 AM
    Hello. I am a SpringBoot/Kotlin Backend developer. we have allready a lot of microservices in production already in our product. Now I am thinking to get a try on Ktor. our environmet is K8s / Openshift deployed with skaffold and Kusomize dockerize with Google Jib / one with Packt. from SpringBoot Gradle/Maven Plugin :). have maybe somebody already some success stories in a environment like this in production. I think about monitoring (actuator) Jeager tracing Hateoas Rest Apis etc.
    f
    • 2
    • 1
  • j

    james

    10/30/2020, 11:14 AM
    Hello everyone, I'm James, an experienced Fullstack developer - I've written server side JVM code in Java, Scala, Clojure, and most recently - Kotlin. 👋
    👋 13
    a
    c
    c
    • 4
    • 5
  • a

    akuleshov7

    10/31/2020, 1:37 PM
    Hey guys, we have created a linter (checker + autofixer) for Kotlin with a huge number of rules. Will be great if you will support it at least with a very simple thing: star on a GitHub: https://github.com/cqfn/diKTat But it will be also great if you will have a chance try it in your CI/CD :) We are already added to awesome-kotlin and awesome-static-analysis, but still need some support from you!
    ⭐ 2
    f
    k
    • 3
    • 16
  • a

    Ananiya

    11/02/2020, 6:23 AM
    hello, how can i convert this spring webhook
    data class WR(status: String)
        @RestController
        @RequestMapping("/webhook")
        class WebhookController {
    
            @PostMapping
            fun postMessage(@RequestBody json: String) : WebhookResponse {
                return WR("ok")
            }
        }
    to ktor , i am little bit confused
    a
    • 2
    • 9
  • s

    sergeyb

    11/03/2020, 8:46 AM
    Hi all!! Can I suppress kotlin compile warnings during gradle build via passing system property parameter something like:
    -DkotlinOptions.suppressWarnings=true
    ?
    v
    • 2
    • 2
  • l

    Lev Ekasov

    11/03/2020, 8:53 AM
    hi all! does anyone know if it is possible to have different kotlin compiler options in gradle (like allWarningsAsErrors) for generated code and for project itself? what we try to solve is: we have swagger specs and generate client code from them, if we generate it to kotlin, the code is not passing allWarningsAsErrors 😞 but we want to enforce allWarningsAsErrors for our own code. i understand that it’s better to fix code generation, but it might take longer.
    b
    • 2
    • 7
  • n

    Nuru

    11/05/2020, 9:04 AM
    Hello Everyone, I'm Nurudeen an Android Developer recently exploring the awesome possibilities of Kotlin on the server with Ktor. It's been great so far.
    :ktor: 1
    👋 4
    👍🏻 3
    r
    • 2
    • 1
  • c

    cy

    11/06/2020, 10:17 AM
    ❓ What is your Java version in production server? Be careful as answering this question may violate your company’s policy: we never ask you to violate any rules. 8️⃣ Java 8 9️⃣ Java 9 🔟 Java 10-13 🆕 Java 14+ 6️⃣ Java 6-7 :graalvm: GraalVM
    🔟 67
    8️⃣ 42
    🆕 12
    k
    a
    +5
    • 8
    • 8
  • h

    Hai Tran

    11/08/2020, 5:13 AM
    Hi everybody I just completed a small server project using Ktor, now I want to run it on a leased server, so how can I package it as well as protect the source code, like creating a APKs on Android?
    b
    k
    +2
    • 5
    • 11
  • n

    Nuru

    11/08/2020, 1:27 PM
    Can I create a Linux server on EC2 and deploy Ktor APIs to it? 🤔
    b
    a
    y
    • 4
    • 3
  • d

    dave

    11/11/2020, 1:52 PM
    For anyone who isn't on the #http4k channel, we've been working on a little something... :) https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1605102706295000
    a
    • 2
    • 11
  • d

    dagomni

    11/11/2020, 4:59 PM
    Is there any ETA on Ktor Kotlin Native server? Or maybe there's a place with progress updates (if there are any)?
    👀 3
    b
    f
    +3
    • 6
    • 10
Powered by Linen
Title
d

dagomni

11/11/2020, 4:59 PM
Is there any ETA on Ktor Kotlin Native server? Or maybe there's a place with progress updates (if there are any)?
👀 3
b

Big Chungus

11/11/2020, 5:15 PM
I remember there being a mention from jb team that native server will come once the new K/N memory model is shipped and native mt coroutines will be stable.
So your best bet in tracking this is tracking new memory model progress
f

Ferran

11/11/2020, 5:39 PM
@Big Chungus do you also remember if there is any timeline for that or anywhere to follow progress?
b

Big Chungus

11/11/2020, 5:39 PM
Unfortunately no. But I think it was mentioned on the coroutines talk during 1.4 event
Might be worth checking it out to see if they mention any dates
d

dagomni

11/12/2020, 5:49 PM
@Rustam Siniukov didn't know who to ask, sorry 😅 any insight?
r

Rustam Siniukov

11/12/2020, 6:16 PM
you can follow this issue for updates https://youtrack.jetbrains.com/issue/KTOR-746 in short, @Big Chungus is right, we are waiting for new memory model for K/N
e

ESchouten

09/02/2021, 10:21 PM
@Rustam Siniukov With the memory model in developer preview, and the promising PR https://github.com/ktorio/ktor/pull/2464 Is a dev preview of Ktor native server near? Would love to play with it
r

Rustam Siniukov

09/06/2021, 7:37 AM
Hi, @ESchouten, @e5l can answer it better.
👀 1
e

e5l

09/06/2021, 9:53 AM
There are now dev preview for now, but WIP. I will post the update in slack
View count: 6