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
I am testing Zuul out as an edge gateway to a micro service that returns json for a GET request. I used the sample route filter in the simple-webapp, but nothing is returned. When I inspect the HttpResponse in the sendResponse() method I do see the json content in the entity.content , however when it is converted to a httpServerletResponse for the RequestContext all response body, code, and content length is lost. Is the example route filter incorrect or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I figured this out, you need the post/SendResponse.groovy filter to actually write responses back to the client. I wish there was a way to make PR against the wiki to include this under the Writing Filters part, but since there is not, can someone at netflix please update the Wiki with this tidbit as it may save others some time.
I am testing Zuul out as an edge gateway to a micro service that returns json for a GET request. I used the sample route filter in the simple-webapp, but nothing is returned. When I inspect the HttpResponse in the sendResponse() method I do see the json content in the entity.content , however when it is converted to a httpServerletResponse for the RequestContext all response body, code, and content length is lost. Is the example route filter incorrect or am I doing something wrong?
The text was updated successfully, but these errors were encountered: