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/09/14 08:33:23 UTC

[GitHub] [apisix] vaibhavsw opened a new issue, #7916: How to get the response of the upstream and send it to an external service for transformation

vaibhavsw opened a new issue, #7916:
URL: https://github.com/apache/apisix/issues/7916

   ### Description
   
   How do I capture the response body, headers, and status codes from the response of Upstream, send it to an external service for transformation and processing, and then send the response back from the transformation service to the client?
   
   In this direct response of the upstream is not sent to the client, rather the response from the upstream is modified by an external service, and then the response of modification is then sent to the client
   
   ### Environment
   
   - APISIX version (run apisix version): 2.15
   - Operating system (run uname -a): MacOS
   - OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.21.4.1
   - etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.4.15
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run luarocks --version): 3.8.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


[GitHub] [apisix] github-actions[bot] commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1712474314

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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] tzssangglass commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1246866001

   > There are no examples as this a custom requirement where we do not want to expose the JSON sent from the client, rather modify them depending on some rules and then send that as a response.
   
   And why let transformation service return response to the client directly? When this request is proxied from the client to the upstream by APISIX, the response will also be proxied form upstream to client by 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] tzssangglass commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1246524042

   > and then send the response back from the transformation service to the client?
   
   Unable to do this. This requires client APISIX, and external services to cooperate with each other. 
   
   There is something strange about this working model, are there any publicly available examples?


-- 
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] vaibhavsw commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by GitBox <gi...@apache.org>.
vaibhavsw commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1246906694

   The response received from upstream needs to be transformed that is why it needs to be intercepted within APISIX itself


-- 
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] github-actions[bot] closed issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7916: How to get the response of the upstream and send it to an external service for transformation
URL: https://github.com/apache/apisix/issues/7916


-- 
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 #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by GitBox <gi...@apache.org>.
soulbird commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1246434261

   It seems that using ext-plugin (go-runner/java-runner/python-runner) is a good choice, but response body is not supported yet. The good news is that we are currently preparing support.
   
   However, the converted response is still sent to the client by 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] vaibhavsw commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by GitBox <gi...@apache.org>.
vaibhavsw commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1246437424

   @soulbird I didn't get what I do right now to get it working. Any workaround you think can give this flow?


-- 
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] vaibhavsw commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by GitBox <gi...@apache.org>.
vaibhavsw commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1246526605

   @tzssangglass There are no examples as this a custom requirement where we do not want to expose the JSON sent from the client, rather modify them depending on some rules and then send that as a response.


-- 
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] github-actions[bot] commented on issue #7916: How to get the response of the upstream and send it to an external service for transformation

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7916:
URL: https://github.com/apache/apisix/issues/7916#issuecomment-1732536144

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
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