Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
So. I'm experiencing some quirks when attempting to implement some basic middleware for a Restify.js application I'm building with specific regard to
To express the problem in a generic form:
Promise is rejected
Am I doing anything obviously wrong? Any insight? It certainly seems to been related to the promise callbacks, are they somehow suppressing the call to
Follow up. I finally got to the bottom of this. It's down to the order in which middleware is added to the stack with specific regard to the
Adding the restify.bodyParser() middleware BEFORE the custom middleware resolves the issue.