The Prometheus middleware causes a panic when the application handles a request for a non-existent page…
The Prometheus middleware causes a panic when the application handles a request for a non-existent page…: a task in LegoFlow-SWE (Harbor dataset). This happens inside the report function when it tries to cast the value obtained from ctx.Input.GetData("RouterPattern") to a string. When no route…
The task
This happens inside the `report` function when it tries to cast the value obtained from `ctx.Input.GetData("RouterPattern")` to a string. When no route matches, `RouterPattern` is `nil`, and the type assertion fails catastrophically.
Part of Lego-X/LegoFlow-SWE.