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
When the catch handler in moleculerApollo.js runs as a result of runHttpQuery throwing an error, it sets the status code on the response and calls end. Later in moleculer-web when we hit the sendResponse method, it logs a warning message "Headers have already sent." because response headers were already sent by moleculer-apollo.
This isn't causing any issue other than additional noise in the logs.
Instead of calling res.end in moleculerApollo.js, if the error message and status code was returned it could be passed to service.sendResponse and the error would be handled by moleculer-web.
The text was updated successfully, but these errors were encountered:
When the catch handler in
moleculerApollo.js
runs as a result ofrunHttpQuery
throwing an error, it sets the status code on the response and callsend
. Later inmoleculer-web
when we hit thesendResponse
method, it logs a warning message "Headers have already sent." because response headers were already sent bymoleculer-apollo
.This isn't causing any issue other than additional noise in the logs.
Instead of calling
res.end
inmoleculerApollo.js
, if the error message and status code was returned it could be passed toservice.sendResponse
and the error would be handled bymoleculer-web
.The text was updated successfully, but these errors were encountered: