Manuel Lorenzo
09/16/2019, 3:49 PMimport io.ktor.auth
there’s no jwt
package therecy
09/16/2019, 5:11 PMrepositories {
mavenCentral()
jcenter()
}
Jacob Richards
09/16/2019, 8:38 PMEvan R.
09/17/2019, 3:25 AMktor-ktor-client-core
and ktor-ktor-client-json
but yarn and NPM can’t resolve. How can I do this?bitkid
09/17/2019, 12:09 PMBroken delimiter occurred
in ktor server (netty engine)? i have a super simple python script which uploads files of size 2-4MB (with method PUT) and it works well in general but in like 1 out of 2000 cases i get this error message.Manuel Lorenzo
09/18/2019, 10:05 AMMarcin Wiśniewski
09/18/2019, 1:51 PMManuel Lorenzo
09/18/2019, 3:46 PMProcfile
that points where the scripts are, web: ./build/scripts/myapp
but I still see if I run heroku logs --tail
this: 2019-09-18T15:43:48.000000+00:00 app[api]: Build started by user <mailto:me@gmail.com|me@gmail.com>
2019-09-18T15:44:43.005061+00:00 heroku[web.1]: State changed from crashed to starting
2019-09-18T15:44:42.815943+00:00 app[api]: Release v12 created by user <mailto:me@gmail.com|me@gmail.com>
2019-09-18T15:44:42.815943+00:00 app[api]: Deploy c26b0ff0 by user <mailto:me@gmail.com|me@gmail.com>
2019-09-18T15:44:46.857033+00:00 heroku[web.1]: Starting process with command `./build/scripts/myapp`
2019-09-18T15:44:48.994734+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-18T15:44:48.978657+00:00 heroku[web.1]: Process exited with status 1
2019-09-18T15:44:48.764617+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2019-09-18T15:44:48.780285+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8
2019-09-18T15:44:48.927548+00:00 app[web.1]: Error: Could not find or load main class io.ktor.server.netty.EngineMain
2019-09-18T15:45:15.000000+00:00 app[api]: Build succeeded
Manuel Lorenzo
09/18/2019, 8:52 PMSergioedcigreja
09/19/2019, 9:00 AMvngantk
09/19/2019, 9:26 AMMarcin Wiśniewski
09/19/2019, 10:29 AMribesg
09/20/2019, 9:10 AMribesg
09/20/2019, 10:57 AMPHondogo
09/20/2019, 11:45 AMtseisel
09/20/2019, 2:16 PMbaseUrl
= "https://foo.host.com/api/v1"
when calling httpClient.get("endpoint")
, then the resolved URL is <https://foo.host.com/api/v1/endpoint>
.Pavel Lechev
09/20/2019, 2:18 PMio.ktor.metrics.micrometer.MicrometerMetrics
which would allow tracking of outbound HTTP calls.Bhattachar
09/20/2019, 3:47 PMNikky
09/22/2019, 9:27 AMtjohnn
09/23/2019, 9:55 AMcoder82
09/23/2019, 11:10 AMbitkid
09/23/2019, 2:53 PMaddHeader(HttpHeaders.ContentType, ContentType.MultiPart.FormData.withParameter("boundary", boundary).toString())
setBody(boundary, listOf(
PartData.FileItem({ file.inputStream().asInput() }, {}, headersOf(
HttpHeaders.ContentDisposition,
ContentDisposition.File
.withParameter(ContentDisposition.Parameters.Name, "file")
.withParameter(ContentDisposition.Parameters.FileName, "file.txt")
.toString()
))
))
but when i get it on the server side like this GZIPInputStream(part.streamProvider())
it complains "Not in GZIP format" .. when i try the same code with the file directly it works. any ideas?Big Chungus
09/24/2019, 12:50 PM{"key":123}
is sent as "{"key":123}"
bitkid
09/24/2019, 2:56 PMPHondogo
09/24/2019, 5:23 PMJeremy
09/24/2019, 6:32 PMJeremy
09/24/2019, 6:33 PMBig Chungus
09/25/2019, 7:22 AMribesg
09/25/2019, 8:29 AMMarc Knaup
09/25/2019, 2:02 PMproceed()
not finish()
in a pipeline interceptor?