sikri
08/30/2020, 7:05 PMkotlin("jvm") version "1.4.0"
+
./gradlew generate
results in
Caused by: java.lang.NoSuchMethodError: org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(Lorg/jetbrains/kotlin/com/intellij/openapi/project/Project;Ljava/util/Collection;Lorg/jetbrains/kotlin/resolve/BindingTrace;Lorg/jetbrains/kotlin/config/CompilerConfiguration;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lorg/jetbrains/kotlin/com/intellij/psi/search/GlobalSearchScope;ILjava/lang/Object;)Lorg/jetbrains/kotlin/analyzer/AnalysisResult;
at io.kotless.parser.utils.psi.analysis.ResolveUtil.analyze(ResolveUtil.kt:26)
at io.kotless.parser.utils.psi.analysis.ResolveUtil.analyze$default(ResolveUtil.kt:25)
at io.kotless.parser.utils.psi.analysis.ResolveUtil.analyze(ResolveUtil.kt:21)
at io.kotless.parser.utils.psi.analysis.ResolveUtil.analyze(ResolveUtil.kt:17)
at io.kotless.parser.Parser.parse(Parser.kt:33)
at io.kotless.plugin.gradle.tasks.gen.KotlessGenerateTask.parseSources(KotlessGenerateTask.kt:92)
at io.kotless.plugin.gradle.tasks.gen.KotlessGenerateTask.act(KotlessGenerateTask.kt:71)
Moroa Matshubeni
08/31/2020, 1:03 PMError: No certificate for domain "<http://test.example.co.za|test.example.co.za>" found in this region
a certificate has been isssued to example.co.za.
Another issue is how do i override the function name, at the moment
function_name = "merged-0"
Sebastian Kazenbroot-Guppy
09/08/2020, 10:25 PM<https://api.sebastiankazenbrootguppy.com/topics|https://api.sebastiankazenbrootguppy.com/topics>
. This endpoint returns application/json. When visiting this endpoint in Chrome, I see HTTP ERROR 406
(you likely do too). However, when I CURL the endpoint, or use the API Gateway test UI, it returns an array of five JSON entities like it's supposed to. Has anyone else encountered HTTP 406 issues with a Ktor Kotless app?aarjav
09/16/2020, 12:26 AMMattlangsenkamp
10/05/2020, 12:38 AM@DynamoDBTable(tableName, PermissionLevel.ReadWrite)
however there does not appear to be a annotation for secrets manager in the io.kotless.dsl.lang namespace. Is there a way around this?AnnoymousGiraf
10/06/2020, 5:04 AMMattlangsenkamp
10/06/2020, 9:01 PMjava.lang.IllegalArgumentException: List has more than one element.
at kotlin.collections.CollectionsKt___CollectionsKt.single(_Collections.kt:550)
at io.kotless.dsl.ktor.app.KotlessResponse.toHttp(KotlessResponse.kt:73)
at io.kotless.dsl.ktor.Kotless$handleRequest$response$1.invokeSuspend(Kotless.kt:80)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(PipelineContext.kt:238)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:67)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(PipelineContext.kt:144)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(PipelineContext.kt:238)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:67)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(PipelineContext.kt:144)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(PipelineContext.kt:238)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:67)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(PipelineContext.kt:144)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(PipelineContext.kt:238)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:67)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(PipelineContext.kt:144)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(PipelineContext.kt:238)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(PipelineContext.kt:194)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(PipelineContext.kt:67)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(PipelineContext.kt:144)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:272)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:79)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:54)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:36)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at io.kotless.dsl.ktor.Kotless.handleRequest(Kotless.kt:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at lambdainternal.EventHandlerLoader$StreamMethodRequestHandler.handleRequest(EventHandlerLoader.java:356)
at lambdainternal.EventHandlerLoader$2.call(EventHandlerLoader.java:902)
at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:341)
at lambdainternal.AWSLambda.<clinit>(AWSLambda.java:63)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at lambdainternal.LambdaRTEntry.main(LambdaRTEntry.java:150)
Mattlangsenkamp
10/07/2020, 3:07 PMLeoColman
10/08/2020, 1:02 AMAnnoymousGiraf
10/09/2020, 2:03 AMTanVD
10/11/2020, 3:25 PM0.1.7-beta-4
was released. It is a beta version with an experimental support of GraalVM.
You can start using GraalVM in your Ktor projects just by specifying runtime = Runtime.GraalVM
. Kotless will do everything for you -- compile application, add custom runtime and so on. See more about it at https://github.com/JetBrains/kotless#beta-release
GraalVM reduces cold-start time by 200-400x, for example initialization of Ktor Site application now takes about 3ms. Basically, in a lot of cases GraalVM fully solves the problem of cold-startsPJ Walstrom
10/15/2020, 8:01 PMroute53 = Route53(alias="", zone="<http://mydoama.org|mydoama.org>", certificate="_<http://e491cf4eb0d63b4d22903af02782d761.mydoama.org|e491cf4eb0d63b4d22903af02782d761.mydoama.org>")
but get the following error:
Error: No certificate for domain "<http://_e491cf4eb0d63b4d22903af02782d761.mydoama.org|_e491cf4eb0d63b4d22903af02782d761.mydoama.org>" found in this region
on <http://kotless-test.tf|kotless-test.tf> line 141, in data "aws_acm_certificate" "e491cf4eb0d63b4d22903af02782d761_mydoama_org":
141: data "aws_acm_certificate" "e491cf4eb0d63b4d22903af02782d761_mydoama_org" {
I have set up a certificate for us-east-1 (N. Virginia), so I just don't know what is wrong. I am a bit confused what the parameters to Route53 should be. I do not have an alias, and should zone be my domain? Does not sound like a "zone"? Using kotless 0.1.6dector
10/17/2020, 12:18 PMPJ Walstrom
10/18/2020, 8:16 PM@StaticGet("/favicon.ico", MimeType.PNG)
val favicon = File("favicon.ico")
The resource is deployed to S3, but it is not accessible. Locally, it works, though.
I see the same problems with e.g. https://ktor.short.kotless.io/favicon.apng and https://ktor.site.kotless.io/favicon.apngSourabh Rawat
10/20/2020, 1:40 PMSourabh Rawat
10/20/2020, 1:47 PM* What went wrong:
Execution failed for task ':generate'.
> 'org.jetbrains.kotlin.analyzer.AnalysisResult org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(org.jetbrains.kotlin.com.intellij.openapi.project.Project, java.util.Collection, org.jetbrains.kotlin.resolve.BindingTrace, org.jetbrains.kotlin.config.CompilerConfiguration, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function2, org.jetbrains.kotlin.com.intellij.psi.search.GlobalSearchScope, int, java.lang.Object)'
Sourabh Rawat
10/20/2020, 4:36 PMError creating API Gateway Deployment: BadRequestException: The REST API doesn't contain any methods
on <http://whats-your-ip.tf|whats-your-ip.tf> line 14, in resource "aws_api_gateway_deployment" "root":
14: resource "aws_api_gateway_deployment" "root" {
please help.Sourabh Rawat
10/23/2020, 4:51 PMaarjav
10/27/2020, 12:01 AMdave
10/27/2020, 8:10 AMaleksey.tomin
11/20/2020, 8:54 AM-rw-r--r-- 1 atomin staff 2.7M Aug 14 10:48 kotlin-reflect-1.3.72.jar
-rw-r--r-- 1 atomin staff 2.3M Sep 10 11:44 guava-20.0.jar
-rw-r--r-- 1 atomin staff 1.1M Aug 24 11:19 jackson-databind-2.6.7.3.jar
-rw-r--r-- 1 atomin staff 756K Aug 24 11:19 httpclient-4.5.9.jar
-rw-r--r-- 1 atomin staff 718K Oct 13 17:26 javassist-3.21.0-GA.jar
-rw-r--r-- 1 atomin staff 607K Aug 24 11:19 joda-time-2.8.1.jar
Why it’s needed?aleksey.tomin
11/27/2020, 11:39 AMasarazan
11/28/2020, 8:40 PMasarazan
12/08/2020, 5:39 PMroute53 = Route53("www", "<http://example.com|example.com>", "*.<http://example.com|example.com>")
complains about the * being invalidasarazan
12/08/2020, 5:46 PMMattlangsenkamp
12/10/2020, 5:37 AMAlexandre Brown
12/12/2020, 2:49 AMimplementation("io.kotless", "ktor-lang", "0.1.7-beta-4")
Thanksasarazan
12/12/2020, 9:53 PMAlexandre Brown
12/12/2020, 10:30 PMpackage com.mdServerless.kotless
import io.kotless.dsl.ktor.Kotless
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.routing.*
import kotlin.random.Random
class Server : Kotless() {
override fun prepare(app: Application) {
app.routing {
get("/") {
call.respondText { "Welcome to Kotless" }
}
get("/hello") {
val result = compute()
call.respondText { "Kotless says hello from Ktor! unique value: $result" }
}
post("/") {
call.respondText { "Your post was well received!" }
}
}
}
private fun compute(): Int {
return Random.nextInt()
}
}
Am I doing something wrong?Sebastian Kazenbroot-Guppy
12/13/2020, 6:33 PM