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

   > @forget99 Do you get the expected body if you print `request.getBody()` in 
postFilter? To clarify, `ext-plugin- post-resp` is run after a response is 
returned by the upstream and it doesn't call the upstream itself. I still don't 
see any business logic which change or tamper the response returned by upstream.
   > 
   > Also for debugging and isolating the problem, can you confirm that even if 
you remove all other plugins and leave only `ext-post-resp` plugin in the 
configuration, the error still remains?
   
   @Revolyssup I print request.getBody() in PostFilter,Not achieving the 
expected results,I got this result:
   `
   <html>
   <head><title>404 Not Found</title></head>
   <body>
   <center><h1>404 Not Found</h1></center>
   <hr><center>nginx</center>
   </body>
   </html>
   `
   
   
    when i remove all other plugins and leave only ext-post-resp plugin in the 
configuration,The error still exists,but when i remove all other 
plugins,Rewritten domain name,Call successful。
   `
   {
     "uri": "/test-api/*",
     "name": "测试api",
     "desc": "测试api",
     "methods": [
       "GET",
       "POST"
     ],
     "plugins": {
       "proxy-rewrite": {
         "host": "test.com",
         "regex_uri": [
           "^/test-api/(/|$)(.*)",
           "/$2"
         ],
         "use_real_request_uri_unsafe": false
       }
     },
     "service_id": "1673602146597138445",
     "labels": {
       "API_VERSION": "v1"
     },
     "status": 1
   }
   `
   
   
   
   


-- 
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