You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Brucepower0223 (via GitHub)" <gi...@apache.org> on 2023/03/10 04:14:49 UTC

[GitHub] [apisix] Brucepower0223 opened a new issue, #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)

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

   ### Description
   
   I made a plugin,and i return 200,**msgInfo** in plugin before_proxy.
   
   Then i try to use response-rewrite to modify the **msgInfo**
   
   but it failed,then I debug that, the response-rewrite get the body by  core.response.hold_body_chunk(ctx)
   
   and then I found that  the result is nli or ''
   
   I wonder why~
   
   ### Environment
   
   - APISIX version (the latest 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] An-DJ commented on issue #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)

Posted by "An-DJ (via GitHub)" <gi...@apache.org>.
An-DJ commented on issue #9048:
URL: https://github.com/apache/apisix/issues/9048#issuecomment-1463235015

   @Brucepower0223 Could you show ur plugin and the detailed steps to help us reproduce the 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] Brucepower0223 commented on issue #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)

Posted by "Brucepower0223 (via GitHub)" <gi...@apache.org>.
Brucepower0223 commented on issue #9048:
URL: https://github.com/apache/apisix/issues/9048#issuecomment-1467270017

   > Could you log in `core.response.hold_body_chunk` to see if other plugin have used this function?
   
   yes, I can make sure that only my plugin and response-rewreite plugin do work


-- 
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] monkeyDluffy6017 commented on issue #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9048:
URL: https://github.com/apache/apisix/issues/9048#issuecomment-1465662353

   Could you log in `core.response.hold_body_chunk` to see if other plugin have used this function?


-- 
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] help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx) [apisix]

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

   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


Re: [I] help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx) [apisix]

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

   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


Re: [I] help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx) [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)
URL: https://github.com/apache/apisix/issues/9048


-- 
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] monkeyDluffy6017 commented on issue #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9048:
URL: https://github.com/apache/apisix/issues/9048#issuecomment-1467434426

   Does https://apisix.apache.org/docs/apisix/plugins/mocking/ satisfy your requirement?


-- 
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] Brucepower0223 commented on issue #9048: help request: response-rewrite can't get body from core.response.hold_body_chunk(ctx)

Posted by "Brucepower0223 (via GitHub)" <gi...@apache.org>.
Brucepower0223 commented on issue #9048:
URL: https://github.com/apache/apisix/issues/9048#issuecomment-1467272116

   > @Brucepower0223 Could you show ur plugin and the detailed steps to help us reproduce the issue?
   
   yes.
   ![image](https://user-images.githubusercontent.com/12574550/224880281-890fc42c-ae49-450d-bac9-6537b7650c2f.png)
   
   
   I return core.json.encode(msg). in proxy phrase. And i tried use response rewrite to modify this. And i log in response-rewreite and I found. In core.response.hold_body_chunk. 
   ![image](https://user-images.githubusercontent.com/12574550/224880507-f21a0c5c-b026-4212-8e0f-e1eca8dad021.png)
   
   I logged after      local body = core.response.hold_body_chunk(ctx)
   ![image](https://user-images.githubusercontent.com/12574550/224880587-bf8bcbbb-b1be-4dfb-9a8f-d1fbf7e954af.png)
   
   
   the body is nil or ''


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