idbeta opened a new issue #2735:
URL: https://github.com/apache/apisix/issues/2735


   ### Issue description
   I want to try batch-requests, but when I testing it according to the method 
in the 
[document](https://github.com/apache/apisix/blob/master/doc/plugins/batch-requests.md),
 always returned an error, it is different from the result in the document. Is 
there a mistake in my operation? @ShiningRush 
   
   ### Environment
   * apisix version (cmd: `apisix version`): master
   * OS: macos
   
   ```shell
   curl --location --request POST 'http://127.0.0.1:9080/apisix/batch-requests' 
\
   --header 'Content-Type: application/json' \
   --data '{
       "headers": {
           "Content-Type": "application/json",
           "admin-jwt":"xxxx"
       },
       "timeout": 500,
       "pipeline": [
           {
               "method": "POST",
               "path": "/community.GiftSrv/GetGifts",
               "body": "test"
           },
           {
               "method": "POST",
               "path": "/community.GiftSrv/GetGifts",
               "body": "test2"
           }
       ]
   }'
   ```
   return
   ```shell
   [
       {
           "body":"{"error_msg":"404 Route Not Found"}
   ",
           "reason":"Not Found",
           "status":404,
           "headers":{
               "Connection":"keep-alive",
               "Content-Type":"text/plain; charset=utf-8",
               "Date":"Fri, 13 Nov 2020 03:38:34 GMT",
               "Server":"APISIX/2.0",
               "Transfer-Encoding":"chunked"
           }
       },
       {
           "body":"{"error_msg":"404 Route Not Found"}
   ",
           "reason":"Not Found",
           "status":404,
           "headers":{
               "Connection":"keep-alive",
               "Content-Type":"text/plain; charset=utf-8",
               "Date":"Fri, 13 Nov 2020 03:38:34 GMT",
               "Server":"APISIX/2.0",
               "Transfer-Encoding":"chunked"
           }
       }
   ]
   ```
   


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

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


Reply via email to