sorry, newbie here, what `FAILURE "Selector didn't...
# ktor
e
sorry, newbie here, what
FAILURE "Selector didn't match"
actually means?
2024-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
a
That error message means that the route's evaluation failed. What kind of request is expected to be made by lakeFS?
e
According to the docs:
A 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.
I switched to
post
and it looks working now
Copy code
//        get("/webhooks/format") {
//            call.respondText("Hello World!")
//        }
        post("/webhooks/format") {
            call.respondText("ciao")
        }
👍 1
232 Views