Replies: 2 comments
-
I was able to solve this by using ngx.req.init_body() ngx.req.append_body(res.body) ngx.req.finish_body() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Since this question is not related to the project, I turned it into a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have written a transformer that transforms the HTTP request body in
serverless-pre-function
in thebefore-proxy
phaseHowever, when this is executed, it is throwing below error.
The expectation is to override the client request body with the transformed request body after accessing the external service with resty.http and then that must be sent to the upstream.
Environment
apisix version
): 2.15uname -a
): MacOSopenresty -V
ornginx -V
): nginx version: openresty/1.21.4.1curl http://127.0.0.1:9090/v1/server_info
): 3.4.15luarocks --version
): 3.8.0Beta Was this translation helpful? Give feedback.
All reactions