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 2021/09/18 07:45:28 UTC

[GitHub] [apisix-java-plugin-runner] fmcodeing commented on issue #67: bug: [lua] init.lua:617: phase_func(): failed to receive RPC_HTTP_REQ_CALL: closed

fmcodeing commented on issue #67:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/67#issuecomment-922234717


   thx
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人:                                                                                                                        "apache/apisix-java-plugin-runner"                                                                                    ***@***.***&gt;;
   发送时间:&nbsp;2021年9月18日(星期六) 下午3:37
   ***@***.***&gt;;
   ***@***.******@***.***&gt;;
   主题:&nbsp;Re: [apache/apisix-java-plugin-runner] bug: [lua] init.lua:617: phase_func(): failed to receive RPC_HTTP_REQ_CALL: closed (#67)
   
   
   
   
   
     
   官方demo StopRequestDemoFilter 请求503,没有正常响应,版本2.9 插件版本0.1
     
   Both  APISIX 2.7 and 2.9 can work fine.
    
   A simple modification of the StopRequestDemoFilter.java is needed,  to avoid the NumberFormatException or ClassCastException
    
   You can try this patch out
    ***@***.***
    "ext-plugin-pre-req": {             "conf": [{                 "name": "StopRequestDemoFilter",                 "value": "{\"stop_response_code\": 200, \"stop_response_header_name\": \"header_java_runner\", \"stop_response_header_value\": \"via-java-runner\",  \"stop_response_body\": \"hellox\"}"             }]         }  "ext-plugin-pre-req": {             "conf": [{                 "name": "StopRequestDemoFilter",                 "value": "{\"stop_response_code\": "200", \"stop_response_header_name\": \"header_java_runner\", \"stop_response_header_value\": \"via-java-runner\",  \"stop_response_body\": \"hellox\"}"             }]         }  
   
    
   —
   You are receiving this because you authored the thread.
   Reply to this email directly, view it on GitHub, or unsubscribe.
   Triage notifications on the go with GitHub Mobile for iOS or Android.


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