forget99 commented on issue #9709:
URL: https://github.com/apache/apisix/issues/9709#issuecomment-1608727769

   > Is the code pasted above as it is in the runner or some part of it is 
replaced with the comment? Because I don't see any manipulation with Response 
in the postResponse method but according to error logs the plugin runner sets 
response status code as 404 @forget99
   
   @Revolyssup in postFilter plugin runner use `request.getBody()`,but i get 
upstream service response 404。
   
   `
   @Override
   public void postFilter(PostRequest request, PostResponse response, 
PluginFilterChain chain) {
       logger.info("【进入后置拦截过滤器】");
       // 在后置插件中获取到上游服务的响应结果,但是这里在调用上游服务时应该把域名调用转为了ip + port调用,上游服务的nginx给拦截了
      String body = request.getBody();
       chain.postFilter(request, response);
   }
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to