You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run an authenticated app with some services.
Run a microservices app exposed to the first one.
Try to reach a remote service from the authenticated app API endpoint without a token, eg open http://localhost:8081/api/remote_service in a browser.
Expected behavior
The 401 HTML error page should be returned
Actual behavior
The browser display [object Object]. This is probably due to the fact the raw error object is returned. The behavior might be similar to what happen in #3: because the express.errorHandler() middleware is registered before the remote services it is not applied on remote errors.
System configuration
Module versions : 0.3.4
NodeJS version: 8.9
Operating System: Windows
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Run an authenticated app with some services.
Run a microservices app exposed to the first one.
Try to reach a remote service from the authenticated app API endpoint without a token, eg open
http://localhost:8081/api/remote_service
in a browser.Expected behavior
The 401 HTML error page should be returned
Actual behavior
The browser display
[object Object]
. This is probably due to the fact the raw error object is returned. The behavior might be similar to what happen in #3: because theexpress.errorHandler()
middleware is registered before the remote services it is not applied on remote errors.System configuration
Module versions : 0.3.4
NodeJS version: 8.9
Operating System: Windows
The text was updated successfully, but these errors were encountered: