Getting: ```Error creating API Gateway Deployment:...
# kotless
s
Getting:
Copy code
Error 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.
kotless config:
Copy code
kotless {
    config {
        bucket = "io.github.dragneelfps.whatsyourip"

        terraform {
            profile = "default"
            region = "us-west-2"
        }

    }

    webapp {
    }
}
t
Have you added the app itself?)
s
what do you mean?
t
I mean, do you have any routes? What dsl do you use
s
I have a single route and a HttpRequestInterceptor Its working on local. I am using Kotless DSL
t
Is route in package? And is Gradle group equal to packages root of your application?
s
👀 1
t
Looking into it
Just WOW
I've figured out, but it is likely to be the most hilarious bug in my practice
Could you change CRLF to LF for now in your file?
s
in which file? 😕
t
In
app.kt
)
s
really? But why would that matter, I mean the line endings? Its a .kt file......
t
Kotless is using Kotlin Compiler Embeddable which I've been configuring on Linux. It looks like I've configured it incorrectly and compiler does not understand that
\r
is a part of new line. During parsing it throws an error
Unexpected char between annotation and function
TBH, I thought too that for compiler line endings should not be a problem)))
s
I see. I guess we found an unexpected bug. Glad my important and complex project did something at least.
t
Yep, I've already contacted folks from compiler to understand how to fix it :))
I don't have windows, so we've already have few such a simple, but problematic bugs 😞
s
may be you can build test project in different systems. like using Github Actions.
t
Hm, we already have tests in Actions, but I did not know that it has WIndows support)
s
It does, in fact. Really helps in multiplatform projects.