neil
11/01/2019, 11:37 PMcurl -X GET -I <http://internal-sedna-LoadB-LZRRIJ6EII57-813909172.us-west-2.elb.amazonaws.com:8000/indexer/2019-11-01/_status|internal-sedna-LoadB-LZRRIJ6EII57-813909172.us-west-2.elb.amazonaws.com:8000/indexer/2019-11-01/_status>
HTTP/1.1 200 OK
Date: Fri, 01 Nov 2019 23:36:51 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 53
Connection: keep-alive
Server: Application/debug ktor/debug
coder82
11/04/2019, 11:31 AMNikky
11/05/2019, 12:46 PMnpm ERR! No valid versions available for ktor-ktor-client-core
sendoav
11/06/2019, 8:30 AMbitkid
11/07/2019, 12:47 PMJoakimForslund
11/07/2019, 2:47 PMmartin.petrulak
11/08/2019, 11:01 AMregister(CocktailIngredientMatrix.serializer().list)
register(Ingredient.serializer().list)
I get error from /cocktailIngredientMatrix
endpoint
RESPONSE <http://10.0.2.2:8080/cocktailIngredientMatrix> failed with exception: kotlinx.serialization.json.JsonDecodingException: Invalid JSON at 23: Encountered an unknown key cocktailID
When i change thh order to :
register(Ingredient.serializer().list)
register(CocktailIngredientMatrix.serializer().list)
I get following error :
RESPONSE <http://10.0.2.2:8080/ingredients> failed with exception: kotlinx.serialization.json.JsonDecodingException: Invalid JSON at 41: Encountered an unknown key name
tylerwilson
11/08/2019, 3:42 PMParameters.apply { append(key, value) }
issue is that it is encoding spaces as ‘+’, whereas I need then as ‘%20’. Anybody know if there is a way to adjust this? Or perhaps (like Retrofit) there could be an ‘appendEncoded()’ type call? Thank you!Shan
11/11/2019, 12:11 AMnrobi
11/11/2019, 11:17 AMJoakimForslund
11/11/2019, 9:22 PMkotlinNpmInstall
, I had to add:
implementation(npm("bufferutil", "4.0.1"))
implementation(npm("utf-8-validate", "5.0.2"))
implementation(npm("text-encoding", "0.7.0"))
and add an file in the webpack.config.d folder containing: config.node = { fs: 'empty' };
Now dceJs complains about: error: duplicate target file will be created for 'E:\gloot\glootxr\build\js\node_modules\node-gyp-build\index.js' and 'E:\gloot\glootxr\build\js\node_modules\bufferutil\index.js'
The code using ktor is being written in common
Any pointers on how to fix this?Kurt Renzo Acosta
11/13/2019, 8:16 AMjeggy
11/13/2019, 8:58 PMFeature
which would add a route to the RoutingFeature?wilyarti
11/15/2019, 7:56 AMJørund Amsen
11/15/2019, 8:54 AMcommandLineEnvironment()
as we use almost all the default config there.
Or differently asked; is there a particular reason why you don't support several connectors in the MainEngine/commandLineEnvironment? 🙂rocketraman
11/15/2019, 6:56 PMkevin.cianfarini
11/16/2019, 6:38 PM<https://torrent.ubuntu.com/announce?uploaded=0&downloaded=0&compact=1&info_hash=%65%14%5e%d4%d7%45%cf%c9%3f%5f%fe%34%92%e9%cd%e5%4b%55%7d%9f&peer_id=-CR0001-012345678901&port=6998&left=2082816000>
but when I inspect the request in ktor via HttpClientCall#request#url
it shows this
<https://torrent.ubuntu.com/announce?uploaded=0&downloaded=0&compact=1&info_hash=e%14%5E%EF%BF%BD%EF%BF%BDE%EF%BF%BD%EF%BF%BD%3F_%EF%BF%BD4%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BDKU%7D%EF%BF%BD&peer_id=-CR0001-012345678901&port=6998&left=2082816000>
PHondogo
11/16/2019, 7:43 PMAnimesh Sahu
11/17/2019, 2:24 PMJonathan Mew
11/18/2019, 2:29 PMRan Magen
11/19/2019, 12:19 AMSIGTERM
.
I can implement this myself, though if there's already a commonly used feature, I'd opt to not re-invent the wheel.
My general idea is to set some boolean like stopRequested
when getting a SIGTERM
and maintain another var active: Int
with the current number of active requests similar to https://github.com/ktorio/ktor/blob/master/ktor-features/ktor-metrics/jvm/src/io/ktor/metrics/dropwizard/DropwizardMetrics.kt#L22
so when that number hits 0 and stopRequested
is true, only then finish the process.darkmoon_uk
11/19/2019, 5:29 AMdarkmoon_uk
11/19/2019, 5:29 AMHexa
11/19/2019, 6:32 PMCaused by: java.lang.IllegalArgumentException: Response pipeline couldn't transform 'class java.util.Collections$SingletonMap' to the OutgoingContent
at io.ktor.server.engine.BaseApplicationResponse$Companion$setupSendPipeline$1.invokeSuspend(BaseApplicationResponse.kt:271)
at io.ktor.server.engine.BaseApplicationResponse$Companion$setupSendPipeline$1.invoke(BaseApplicationResponse.kt)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:268)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:67)
at io.ktor.util.pipeline.SuspendFunctionGun.proceed(PipelineContext.kt:141)
at io.ktor.util.pipeline.SuspendFunctionGun.execute(PipelineContext.kt:161)
at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:27)
Thomas
11/20/2019, 8:52 PMscope.receivePipeline.intercept
lambda without closing the original, so the pipeline can continue as normal?nrobi
11/21/2019, 7:30 AMkodein
to ktor
, G fails to resolve kodein-di-framework-ktor-server-jvm:6.3.4
. However it doesn’t have any problem with kodein-di-generic-jvm
. Anyone with a similar issue?darkmoon_uk
11/21/2019, 7:46 AM1.3.0-beta-2-SNAPSHOT
- which master was upgraded to around 12 hours ago? It's not listed on their VCS page as far as I can see.Matthias R
11/21/2019, 4:59 PMAnimesh Sahu
11/22/2019, 11:16 AMJørund Amsen
11/22/2019, 11:28 AM