Closed Doogiemuc closed 5 years ago
SOLVED: The example in the doc for a noopIntercaptor has a small glitch: An interceptor must return a rejected Promise in its error handler.
See pull request https://github.com/cujojs/rest/pull/176
rest.js is no longer maintained
(node js 5.7.0 on windows)
When the default rest() client is wraped in an interceptor (that is created with the interceptor factory method), then the wraped client does not reject on "connection refused".
Here is a test case that demonstrates the behviour: