question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

github_iconTop GitHub Comments

2reactions
rinoguchicommented, May 20, 2019

I faced the same problem.

Ktor Version 1.2.0

  • pattern1: 404 error occurs.
@Location("/hoge")
data class HogeParamater(val param1, val param2)
routing {
    post<HogeParamater> { param ->
        // do something with param
    }
}
  • pattern2: 404 error does not occur. But param remains at the default value.
@Location("/hoge")
data class HogeParamater(val param1: String = "default1", val param2: String = "default2")
routing {
    post<HogeParamater> { param ->
        // do something with param
    }
}
  • pattern3: 404 error does not occur and works well. But URL must be changed.
@Location("/hoge/{param1}/{param2}")
data class HogeParamater(val param1, val param2)
routing {
    post<HogeParamater> { param ->
        // do something with param
    }
}
0reactions
e5lcommented, Apr 2, 2021

Can’t reproduce since 1.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP POST method returning status code 404 - Stack Overflow
The 404 or Not Found error message is a HTTP standard response code indicating that the client was able to communicate with the...
Read more >
404 Not Found Error: What It Is and How to Fix It - Airbrake Blog
The 404 Not Found Error is an HTTP response status code, which indicates that the requested resource could not be found.
Read more >
"HTTP Exception 404" for POST from Location : KTOR-740
"HTTP Exception 404" for POST from Location. 2. This issue was imported from GitHub issue: https://github.com/ktorio/ktor/issues/601.
Read more >
Error 404 not found - What does it mean & how to fix it! - IONOS
The solution is easy - an HTTP 404 error page appears when a web page can't be found. See why this happens and...
Read more >
HTTP 404 - Wikipedia
In computer network communications, the HTTP 404, 404 not found, 404, 404 error, page not found or file not found error message is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found