-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java plugin how to rewrite request body ,apisix 3.6.0 can Support rewrite request body in external plugin:#9990 #270
Comments
1, goto https://github.com/api7/ext-plugin-proto download source mvn install 0.6.1-RELEASE
3.4 HttpRequest add method 2023-10-19 20:40:26.803 WARN 67088 --- [ntLoopGroup-5-3] c.e.h.a.p.DecryptRequestFilter : 解密前数据: 0424fd893147f186c12582e80c57296fefdf4ded77a5e8bb408a38a0fe486e886c811818f23032152d78f0eb96357f041be430cc4b2c08b99a18007e4bb96d43eb2e243e9939a9e2421a78cc75673eb10906b24b5e1aa4a802e7d0c6ad2a8331786950f4b97f4fc2be2da4b65dd6a86a4ebac867451bf72e2cb1df3f801c6d64bc0a2061c96c231f4b08fc2a2a4530828690f7a0e47968c7ffc7027a426a33bf469304683ae44cb18bef4da1e1dae5f18a772ae3893ce8f29ef810d9bfbc5e761c98340f0c105a4ade497e83be60e411fce9b5e7bfa7a5197eec75b585629c3fa2fe23c64fef2ced92b7388e839b22382076bd9a39e80d0e2c21426597ac1ced260fc87fcd1d2684153ac6fcceac4dc3c842de2f96b3c56190d74748aa9bc5faf0072aa3684163ccc50b7b2f4f6089daf8f2562a43ad0f0ee87b6bcf56166ea3fbe95ac1f21d87a195b059fc68243eb99c0d77de12c3cccfe17e263205e93e5a0dc8f9e82161f12c59b46daaf31e1a7a76cef408360d6134220857e2ac0073abda67cb83fe544f263067 |
What is the purpose of this issue? |
According to the above code modifications, there were no issues with local testing, but when packaged and deployed to an online environment, an error occurred and no HTTP body was received. Do you have any good suggestions |
本地环境运行没问题,但是部署到正式环境 重写请求体收不到 报错
Caused by: java.net.SocketTimeoutException: null
at
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1317)
at
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1234)
at
org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:785)
at
org.apache.coyote.http11.Http11InputBuffer.access$400(Http11InputBuffer.java:41)
at
org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1185)
at
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:97)
at
org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:244)
at org.apache.coyote.Request.doRead(Request.java:619)
at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:313)
... 51 common frames omitted
Liu Wei ***@***.***> 于2023年10月20日周五 17:00写道:
… What is the purpose of this issue?
—
Reply to this email directly, view it on GitHub
<#270 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN3H66JY4OET4UB72LLZPWLYAI4UJAVCNFSM6AAAAAA6G5X3IWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGM2TCMBZGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@hcute Nice code. I merged it into my repo and help me work around and implement a similar encrypt-decrypt feature. and the read me is: Hope this works for you too. I have to merge some code fix from others. Of course, it's not a beautiful work but no other choice until offical code released. |
Issue description
Java plugin how to rewrite request body ,apisxi can Support rewrite request body in external plugin:#9990
Environment
The text was updated successfully, but these errors were encountered: