duplicate invalid param 'text' warning for /v1/search
missinglink opened this issue · comments
Wow, never noticed that before. I wonder where it comes from.
I think the core issue is that the 'combining sanitizers' (such as https://github.com/pelias/api/blob/master/sanitizer/search.js) should return immediately upon error rather than running through the rest of the route chain.
ie. here https://github.com/pelias/api/blob/master/sanitizer/sanitizeAll.js#L94 it should return something to trigger the err
in express middleware (req, res, err)
.