You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/17 09:19:39 UTC
[GitHub] [apisix] Hazel6869 opened a new issue, #7722: bug: when use response rewrite plugin, scenarios that return an empty body cannot be supported
Hazel6869 opened a new issue, #7722:
URL: https://github.com/apache/apisix/issues/7722
### Current Behavior
➜ example git:(master) ✗ curl http://127.0.0.1:9080/apisix/admin/routes/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"methods": ["GET"],
"uri": "/get",
"plugins": {
"response-rewrite": {
"body_base64":false,
"body": "",
"headers": {
"X-Server-id": 3,
"X-Server-status": "on",
"X-Server-balancer_addr": "$balancer_ip:$balancer_port"
},
"vars":[
[ "status","==",200 ]
]
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org": 1
}
}
}'
➜ example git:(master) ✗ curl -X GET -i http://127.0.0.1:9080/get
HTTP/1.1 502 Bad Gateway
Connection: keep-alive
Keep-Alive: timeout=4
Proxy-Connection: keep-alive
Content-Length: 0
### Expected Behavior
➜ example git:(master) ✗ curl -X GET -i http://127.0.0.1:9080/get
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Type: application/json
Date: Wed, 17 Aug 2022 08:44:10 GMT
Keep-Alive: timeout=4
Proxy-Connection: keep-alive
Server: APISIX/2.15.0
X-Server-Balancer-Addr: 34.227.213.82:80
X-Server-Id: 3
X-Server-Status: on
### Error Logs
_No response_
### Steps to Reproduce
I will fix this
### Environment
- APISIX version (run `apisix version`): version 2.15.0
- Operating system (run `uname -a`): Linux lan 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): ginx version: openresty/1.21.4.1
built with OpenSSL 1.1.1n 15 Mar 2022
- etcd version, if relevant (run ` `):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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
[GitHub] [apisix] Hazel6869 commented on issue #7722: bug: when use response rewrite plugin, scenarios that return an empty body cannot be supported
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #7722:
URL: https://github.com/apache/apisix/issues/7722#issuecomment-1217746914
>
yes, i will do
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] tokers commented on issue #7722: bug: when use response rewrite plugin, scenarios that return an empty body cannot be supported
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7722:
URL: https://github.com/apache/apisix/issues/7722#issuecomment-1217743443
@Hazel6869 Would you try to fix it?
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #7722: bug: when use response rewrite plugin, scenarios that return an empty body cannot be supported
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #7722: bug: when use response rewrite plugin, scenarios that return an empty body cannot be supported
URL: https://github.com/apache/apisix/issues/7722
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org