You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "WVenus (via GitHub)" <gi...@apache.org> on 2023/02/01 09:44:54 UTC
[GitHub] [apisix] WVenus opened a new issue, #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
WVenus opened a new issue, #8768:
URL: https://github.com/apache/apisix/issues/8768
### Current Behavior
This Error occurs:
```
2023/02/01` 07:18:32 [error] 50#50: *205966883 [lua] init.lua:841: phase_func(): failed to reply RPC_EXTRA_INFO: the max length of data is 16777215 but got 127305012, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/import/agent HTTP/1.1", host: "192.168.60.21", referrer: "http://192.168.60.21:32004/"
2023/02/01 07:18:32 [warn] 50#50: *205966883 [lua] plugin.lua:901: run_plugin(): ext-plugin-pre-req exits with http status code 503, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/import/agent HTTP/1.1", host: "192.168.60.21", referrer: "http://192.168.60.21:32004/"
172.30.65.0 - - [01/Feb/2023:07:18:32 +0000] 192.168.60.21 "POST /oam/2.0/tenant/import/agent HTTP/1.1" 503 671 1.215 "http://192.168.60.21:32004/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36" - - - "http://192.168.60.21"
```
Source code location:
`https://github.com/apache/apisix/blob/master/apisix/plugins/ext-plugin/init.lua`

### Expected Behavior
This is the MAX_ DATA_ SIZE become a configurable variable.
### Error Logs
2023/02/01 07:18:32 [error] 50#50: *205966883 [lua] init.lua:841: phase_func(): failed to reply RPC_EXTRA_INFO: the max length of data is 16777215 but got 127305012, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/import/agent HTTP/1.1", host: "192.168.60.21", referrer: "http://192.168.60.21:32004/"
2023/02/01 07:18:32 [warn] 50#50: *205966883 [lua] plugin.lua:901: run_plugin(): ext-plugin-pre-req exits with http status code 503, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/import/agent HTTP/1.1", host: "192.168.60.21", referrer: "http://192.168.60.21:32004/"
172.30.65.0 - - [01/Feb/2023:07:18:32 +0000] 192.168.60.21 "POST /oam/2.0/tenant/import/agent HTTP/1.1" 503 671 1.215 "http://192.168.60.21:32004/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36" - - - "http://192.168.60.21"
### Steps to Reproduce
Use the ext-plugin-pre-req plugin,Upload large data content.
### Environment
- APISIX version (run `apisix version`): 3.1.0
- Operating system (run `uname -a`): Linux apisix-5f5f44c88-ck2jr 3.10.0-862.el7.x86_64
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): openresty/1.21.4.1
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- 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] xiaolajiyhy commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "xiaolajiyhy (via GitHub)" <gi...@apache.org>.
xiaolajiyhy commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1624534969
为什么我 getUpstreamStatusCode 回返回36?
--
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] soulbird commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1420151548
@shreemaan-abhishek can you check this issue?
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1425647003
@WVenus we were unable to reproduce this bug. Are you using docker/kubernetes-based installation? If not, have you tried if this issue exists in docker/kubernetes based installation.
We tried reproducing the bug with the go-plugin-runner and the "say" plugin. Like so:
The route:
```bash
curl "http://127.0.0.1:9180/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
{
"methods": ["POST"],
"plugins": {
"ext-plugin-pre-req": {
"conf" : [
{"name": "say", "value":"{\"body\":\"hello\"}"}
]
}
},
"uri": "/anything/*",
"upstream": {
"type": "roundrobin",
"nodes": {
"[httpbin.org:80](http://httpbin.org/)": 1
}
}
}'
```
The curl post command:
```bash
curl -X POST "http://127.0.0.1:9080/anything/foo?arg=10" -F "image=@/Users/shreemaan-abhishek/Downloads/trip/IMG_4042.MOV"
```
We tried using payloads of various sizes, from KBs to several MBs. It did not fail for any size of the payload, could you report to us the payload size/length you were using?
This is what we found in the logs:
```log
2023/02/10 09:43:41 [warn] 56#56: *66 [lua] init.lua:953: 2023-02-10T09:43:41.860Z INFO server/server.go:115 Client connected (unix), context: ngx.timer
2023/02/10 09:43:41 [warn] 56#56: *66 [lua] init.lua:953: 2023-02-10T09:43:41.860Z INFO server/server.go:115 Client connected (unix)
2023-02-10T09:43:41.861Z INFO server/server.go:131 receive rpc type: 1 data length: 120
2023-02-10T09:43:41.861Z INFO plugin/conf.go:98 prepare conf for plugin say, context: ngx.timer
2023/02/10 09:43:41 [warn] 56#56: *66 [lua] init.lua:953: 2023-02-10T09:43:41.871Z INFO server/server.go:131 receive rpc type: 2 data length: 476, context: ngx.timer
2023/02/10 09:43:41 [warn] 56#56: *66 [lua] init.lua:953: 2023-02-10T09:43:41.872Z INFO plugin/plugin.go:120 run plugin say, context: ngx.timer
```
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1624604121
@xiaolajiyhy please use english.
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1437046369
@WVenus @beginnerWJC we were unable to reproduce this bug.
I used the information provided by @beginnerWJC
The route:
```bash
curl "http://127.0.0.1:9180/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
{
"methods": ["POST"],
"uri": "/*",
"plugins": {
"ext-plugin-pre-req": {
"conf" : [
{ "name": "TestPostFilter", "value": "" }
]
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:5001": 1
}
}
}'
```
The curl post command:
```bash
curl -i -X POST "http://127.0.0.1:9080/upload" -F "file=@/Users/shreemaan-abhishek/Downloads/trip/IMG_4042.MOV"
```
This is what we found in the logs:
```log
2023/02/20 18:59:17 [warn] 53971#10046299: *2295355 a client request body is buffered to a temporary file /Users/shreemaan-abhishek/Desktop/repos/apisix/client_body_temp/0000000022, client: 127.0.0.1, server: _, request: "POST /upload HTTP/1.1", host: "127.0.0.1:9080"
2023/02/20 18:59:17 [warn] 53971#10046299: *2295355 an upstream response is buffered to a temporary file /Users/shreemaan-abhishek/Desktop/repos/apisix/proxy_temp/3/02/0000000023 while reading upstream, client: 127.0.0.1, server: _, request: "POST /upload HTTP/1.1", upstream: "http://127.0.0.1:5001/upload", host: "127.0.0.1:9080"
```
I used this [app](https://github.com/shreemaan-abhishek/go-imageupload/tree/changes) to test.
--
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] beginnerWJC commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "beginnerWJC (via GitHub)" <gi...@apache.org>.
beginnerWJC commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1432812948
this is my test plugin
`package org.apache.apisix.plugin.runner.filter;
import java.util.Map;
import org.apache.apisix.plugin.runner.PostRequest;
import org.apache.apisix.plugin.runner.PostResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSON;
@Component
public class TestPostFilter implements PluginFilter {
private final Logger logger = LoggerFactory.getLogger(TestPostFilter.class);
@Override
public String name() {
return "TestPostFilter";
}
@Override
public void postFilter(PostRequest request, PostResponse response, PluginFilterChain chain) {
logger.info("TestPostFilter插件开始执行!");
Map<String, String> headersMap = request.getUpstreamHeaders();
logger.info("上游返回的headers:{}",JSON.toJSONString(headersMap));
int statusCode = request.getUpstreamStatusCode();
logger.info("上游返回的状态码为:{}",statusCode);
if(statusCode == 204) {
logger.info("修改上游的状态码为200");
response.setStatusCode(200);
}
response.setHeader("apisix", "TestPostFilter");
chain.postFilter(request, response);
}
@Override
public Boolean requiredBody() {
return true;
}
}`
the router
`{ "uri": "/oam/2.0/tenant/upload/vox", "name": "testfile", "methods": [ "POST" ], "plugins": { "ext-plugin-pre-req": { "conf": [ { "name": "TestPostFilter", "value": "" } ], "disable": false } }, "upstream_id": "435624104997946125", "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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012 [apisix]
Posted by "missence521 (via GitHub)" <gi...@apache.org>.
missence521 commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-2132952119
> 此行为是有意为之。 长度字段的大小为 3 个字节:
>
> https://github.com/apache/apisix/blob/0ebc9cb85114ed5a389b335e9b8ead7d3fdc17a0/apisix/plugins/ext-plugin/init.lua#L145
>
>
> 因此只能发送16777215个字节。
> 发送这么大的数据是不可避免的吗?每次请求在两种语言之间复制 16MB 以上的数据是无效的。
业务场景确实有超过16m的情况,该怎么处理呢,目前可以改最大限制,但是带来的,就是使用这个插件就报https://github.com/apache/apisix-java-plugin-runner/issues/198,能给一个解决办法吗?期待您的回复
--
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] WVenus commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "WVenus (via GitHub)" <gi...@apache.org>.
WVenus commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1427226335
@shreemaan-abhishek
I used kubernetes. You can try to upload data larger than 20M.
Do you test whether the uploaded data exceeds the code_ data_ Is the maximum size of SIZE?
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1427297265
> Do you test whether the uploaded data exceeds the MAX_DATA_SIZE variable?
Sorry, I did not understand this, but I even tried with data of size 39MB. I did not fail.
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1437312663
@spacewander I was able to reproduce this issue, I think this is a valid bug and this should be fixed. Waiting for your confirmation.
--
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 commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "spacewander (via GitHub)" <gi...@apache.org>.
spacewander commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1439316920
I would suggest doing the body rewrite in Lua.
As for making the max length configurable, we need to extend the protocol and update the plugin runners and APISIX.
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1432633748
@beginnerWJC could you please share the plugin that you are using?
--
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] xiaolajiyhy commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "xiaolajiyhy (via GitHub)" <gi...@apache.org>.
xiaolajiyhy commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1624534348
getUpstreamStatusCode 36
--
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
Re: [I] bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012 [apisix]
Posted by "charlesvhe (via GitHub)" <gi...@apache.org>.
charlesvhe commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-2186131164
we have same issue, any update?
--
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] beginnerWJC commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "beginnerWJC (via GitHub)" <gi...@apache.org>.
beginnerWJC commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1428999254
l use apisix-java-plugin , the method requiredBody() default value is false ,l set true to find this issuce


the router :
`{
"uri": "/oam/2.0/tenant/upload/vox",
"name": "testfile",
"methods": [
"POST"
],
"plugins": {
"ext-plugin-pre-req": {
"conf": [
{
"name": "TestPostFilter",
"value": ""
}
],
"disable": false
}
},
"upstream_id": "435624104997946125",
"status": 1
}`
postman test:

log:
`2023/02/14 01:56:10 [warn] 48#48: *3355 a client request body is buffered to a temporary file /usr/local/apisix/client_body_temp/0000000001, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/upload/vox HTTP/1.1", host: "192.168.60.21"
2023/02/14 01:56:10 [error] 48#48: *3355 [lua] init.lua:841: phase_func(): failed to reply RPC_EXTRA_INFO: the max length of data is 16777215 but got 24852340, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/upload/vox HTTP/1.1", host: "192.168.60.21"
2023/02/14 01:56:10 [warn] 48#48: *3355 [lua] plugin.lua:901: run_plugin(): ext-plugin-pre-req exits with http status code 503, client: 172.30.65.0, server: _, request: "POST /oam/2.0/tenant/upload/vox HTTP/1.1", host: "192.168.60.21"
172.30.65.0 - - [14/Feb/2023:01:56:10 +0000] 192.168.60.21 "POST /oam/2.0/tenant/upload/vox HTTP/1.1" 503 269 0.338 "-" "PostmanRuntime/7.28.4" - - - "http://192.168.60.21"`
--
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] WVenus commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "WVenus (via GitHub)" <gi...@apache.org>.
WVenus commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1429297916
@shreemaan-abhishek
Can you reproduce the problem based on the information provided by @beginnerWJC?
--
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
Re: [I] bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012 [apisix]
Posted by "lixpng (via GitHub)" <gi...@apache.org>.
lixpng commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-2249312996
we have same issue, any update?
--
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] shreemaan-abhishek commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1420152989
Sure, please assign it to me.
--
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 commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "spacewander (via GitHub)" <gi...@apache.org>.
spacewander commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1437738811
This behavior is intended.
The size of length field is 3 bytes: https://github.com/apache/apisix/blob/0ebc9cb85114ed5a389b335e9b8ead7d3fdc17a0/apisix/plugins/ext-plugin/init.lua#L145
So only 16777215 bytes can be sent.
Is sending such a big body inevitable? Copy 16MB+ data between two languages per request is ineffective.
--
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] beginnerWJC commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "beginnerWJC (via GitHub)" <gi...@apache.org>.
beginnerWJC commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1437745452
@spacewander If it is a file upload interface,when the request body needs to be overwritten,It is easy to exceed 16M. So i hope expose an environment variable to set 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
Re: [I] bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012 [apisix]
Posted by "zggg (via GitHub)" <gi...@apache.org>.
zggg commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-2133084017
Is there any progress? @shreemaan-abhishek
--
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] beginnerWJC commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "beginnerWJC (via GitHub)" <gi...@apache.org>.
beginnerWJC commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1429004847
https://github.com/apache/apisix/blob/release/2.15/apisix/plugins/ext-plugin/init.lua#L126-L154

this is apisix source code
--
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] xiaolajiyhy commented on issue #8768: bug: failed to reply RPC_EXTRA_INFO:the max length of data is 16777215 but got 127305012
Posted by "xiaolajiyhy (via GitHub)" <gi...@apache.org>.
xiaolajiyhy commented on issue #8768:
URL: https://github.com/apache/apisix/issues/8768#issuecomment-1624535341
> this is my test plugin `package org.apache.apisix.plugin.runner.filter;
>
> import java.util.Map; import org.apache.apisix.plugin.runner.PostRequest; import org.apache.apisix.plugin.runner.PostResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import com.alibaba.fastjson.JSON;
>
> @component public class TestPostFilter implements PluginFilter {
>
> ```
> private final Logger logger = LoggerFactory.getLogger(TestPostFilter.class);
>
> @Override
> public String name() {
> return "TestPostFilter";
> }
>
> @Override
> public void postFilter(PostRequest request, PostResponse response, PluginFilterChain chain) {
> logger.info("TestPostFilter插件开始执行!");
> Map<String, String> headersMap = request.getUpstreamHeaders();
> logger.info("上游返回的headers:{}",JSON.toJSONString(headersMap));
> int statusCode = request.getUpstreamStatusCode();
> logger.info("上游返回的状态码为:{}",statusCode);
> if(statusCode == 204) {
> logger.info("修改上游的状态码为200");
> response.setStatusCode(200);
> }
> response.setHeader("apisix", "TestPostFilter");
> chain.postFilter(request, response);
> }
>
> @Override
> public Boolean requiredBody() {
> return true;
> }
> ```
>
> }` the router
>
> `{ "uri": "/oam/2.0/tenant/upload/vox", "name": "testfile", "methods": [ "POST" ], "plugins": { "ext-plugin-pre-req": { "conf": [ { "name": "TestPostFilter", "value": "" } ], "disable": false } }, "upstream_id": "435624104997946125", "status": 1 }` @shreemaan-abhishek l use apisix-java-plugin , the method requiredBody() default value is false ,l set true to find this issuce
为什么我 getUpstreamStatusCode 回返回36?
--
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