WrightKD commented on issue #11646:
URL: https://github.com/apache/apisix/issues/11646#issuecomment-2426235835

   I have been able to reproduce the error locally.
   
   Steps to reproduce :
   
   1. Spin up apisix using the docker container with version 3.6.0-debian. 
Reuse curl -sL https://run.api7.ai/apisix/quickstart | sh , but with the docker 
tag updated to 3.6.0-debian.
   
   2. Setup a local SOAP Mock service. I used SOAP UI Mock Service to setup a 
service. Example setup : 
   
![image](https://github.com/user-attachments/assets/abcdee72-9e9c-4b35-b2b6-15abad4d9a13)
   
   3. Setup a script to call the endpoint. I have a simple python script 
(python 3) to call the route in a loop  Example :
   ```python
   import requests
   
   for i in range(0,150):
       r = requests.post(json={"a" : "1", "b" : "1"}, 
url="http://localhost:9080/convert/number",headers={'Accept-Encoding': ''})
   ```
   
   4. Setup the route : 
   
   ```json
   {
       "uri": "/convert/number",
       "name": "convert-number",
       "methods": [
           "POST"
       ],
       "plugins": {
           "proxy-rewrite": {
               "uri": "/mockCalculatorSoap12",
               "headers": {
                   "set": {
                       "Content-Type": "application/soap+xml"
                   }
               }
           },
           "response-rewrite": {
               "headers": {
                   "set": {
                       "Content-Type": "application/json"
                   }
               }
           },
           "body-transformer": {
               "request": {
                   "input_format": "json",
                   "template": 
"PHNvYXA6RW52ZWxvcGUgeG1sbnM6c29hcD0iaHR0cDovL3d3dy53My5vcmcvMjAwMy8wNS9zb2FwLWVudmVsb3BlIiB4bWxuczp0ZW09Imh0dHA6Ly90ZW1wdXJpLm9yZy8iPg0KICAgPHNvYXA6SGVhZGVyLz4NCiAgIDxzb2FwOkJvZHk+DQogICAgICA8dGVtOkFkZD4NCiAgICAgICAgIDx0ZW06aW50QT57e19lc2NhcGVfeG1sKGEpfX08L3RlbTppbnRBPg0KICAgICAgICAgPHRlbTppbnRCPnt7X2VzY2FwZV94bWwoYil9fTwvdGVtOmludEI+DQogICAgICA8L3RlbTpBZGQ+DQogICA8L3NvYXA6Qm9keT4NCjwvc29hcDpFbnZlbG9wZT4NCg=="
               },
               "response": {
                   "input_format": "xml",
                   "template": 
"eyUgaWYgRW52ZWxvcGUuQm9keS5GYXVsdCA9PSBuaWwgdGhlbiAlfQ0Kew0KICAgInN0YXR1cyI6Int7X2N0eC52YXIuc3RhdHVzfX0iLA0KICAgImNhbGN1bGF0aW9uIjoie3tFbnZlbG9wZS5Cb2R5LkFkZFJlc3BvbnNlLkFkZFJlc3VsdH19Ig0KfQ0KeyUgZWxzZSAlfQ0Kew0KICAgIm1lc3NhZ2UiOnsqX2VzY2FwZV9qc29uKEVudmVsb3BlLkJvZHkuRmF1bHQuZmF1bHRzdHJpbmdbMV0pKn0sDQogICAiY29kZSI6Int7RW52ZWxvcGUuQm9keS5GYXVsdC5mYXVsdGNvZGV9fSINCiAgIHslIGlmIEVudmVsb3BlLkJvZHkuRmF1bHQuZmF1bHRhY3RvciB+PSBuaWwgdGhlbiAlfQ0KICAgLCAiYWN0b3IiOiJ7e0VudmVsb3BlLkJvZHkuRmF1bHQuZmF1bHRhY3Rvcn19Ig0KICAgeyUgZW5kICV9DQp9DQp7JSBlbmQgJX0="
               }
           }
       },
       "upstream": {
           "nodes": {
               "host.docker.internal:8088": 1
           },
           "scheme": "http",
           "pass_host": "node"
       }
   }
   
   ```
   
   5. Start calling the route
   6. Call `apisix reload` inside the container
   7. Error will be produced , or call `apisix reload` again 
   
   
![image](https://github.com/user-attachments/assets/b263b491-5944-435f-bcaa-1825b68390ab)
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to