elect
02/13/2024, 11:24 AMFAILURE "Selector didn't match"
actually means?elect
02/13/2024, 11:25 AM2024-02-13 121731.650 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [webhooks, format]
/, segment:0 -> SUCCESS @ /
/webhooks, segment:1 -> SUCCESS @ /webhooks
/webhooks/format, segment:2 -> SUCCESS @ /webhooks/format
/webhooks/format/(method:GET), segment:2 -> FAILURE "Selector didn't match" @ /webhooks/format/(method:GET)
Matched routes:
No results
Route resolve result:
FAILURE "No matched subtrees found" @ /To give more context, I'm trying to react on lakeFS webhooks
Aleksei Tirman [JB]
02/13/2024, 11:50 AMelect
02/13/2024, 1:49 PMA Webhook is a Hook type that sends an HTTP POST request to the configured URL. Any non 2XX response by the responding endpoint will fail the Hook, cancel the execution of the following Hooks under the same Action.
elect
02/13/2024, 1:51 PMpost
and it looks working now
// get("/webhooks/format") {
// call.respondText("Hello World!")
// }
post("/webhooks/format") {
call.respondText("ciao")
}