kalisio / kTeam

Basic utils to support organization management for KDK-based applications and services
MIT License
3 stars 0 forks source link

Unreachable organisation services (404) #1

Open claustres opened 7 years ago

claustres commented 7 years ago

When an org is created dynamically, probably due to the fact that error handler are processed before. Need to remove them when adding a new service then set them again after.

claustres commented 7 years ago

See https://stackoverflow.com/questions/18602578/proper-way-to-remove-middleware-from-the-express-stack and https://www.google.fr/url?sa=t&source=web&rct=j&url=https://github.com/expressjs/express/issues/2418&ved=0ahUKEwjNla-snszVAhUqJcAKHUxDCGAQFggfMAA&usg=AFQjCNFlULzwACQUrEh95bV4KoVer7WPoQ

claustres commented 7 years ago

Temporarily fixed by removing this handler in app https://github.com/feathersjs/feathers-errors/blob/master/src/not-found-handler.js.