Open claustres opened 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.
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
Temporarily fixed by removing this handler in app https://github.com/feathersjs/feathers-errors/blob/master/src/not-found-handler.js.
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.