Open missinglink opened 2 years ago
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)
.
/v1/search
/v1/autocomplete