You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "silenMing (via GitHub)" <gi...@apache.org> on 2024/11/21 15:01:50 UTC
[I] help request: When I use ext-plugin-post-resp plugin, an error ocuurs "404 page not found " [apisix]
silenMing opened a new issue, #11773:
URL: https://github.com/apache/apisix/issues/11773
### Description
Hello,apisix team!
I used go-runner to write an ext plug-in that rewrites the response, and then configured it on the route, using the ext-plugin-post-resp plugin.
I do nothing in this plugin,just record a log. like this
`
func (p *RsaEncrypt) ResponseFilter(conf interface{}, w pkgHTTP.Response) {
log.Infof("plugin rsa_encrypt response_filter")
}
`
this is my route config. my upstream nodes can be accessed,it`s ok
<img width="437" alt="image" src="https://github.com/user-attachments/assets/321ed3b3-cf91-43f1-94a0-87f27e361172">
Then I make a curl request,return "404 page not found"
but,when I remove the configuration of ext-plugin-post-resp plugin in route config,curl return 200 OK!
when 404 retuen ,accesslog is
<img width="1347" alt="image" src="https://github.com/user-attachments/assets/d45d2224-9818-409d-ace3-9bf589ab0662">
hope your answer, thanks.
### Environment
- APISIX version : 3.8
- Operating system : linux 3.10
- OpenResty / Nginx version: openresty/1.25.3.1
- etcd version, if relevant : 3.5.0
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners: ext-plugin-post-resp
- LuaRocks version, for installation issues : 2.3.0
--
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: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org