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/10/12 07:29:20 UTC

[GitHub] [apisix] Winniepoom opened a new issue, #8078: help request: About Batch Request Always got 404 error

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

   ### Description
   
   Hello I'm Very newbie into API Gateway. So my main goal are sending 1 request /command in to multiple services. I heard batch request might be my solution . I follow this [docs   ](https://apisix.apache.org/docs/apisix/plugins/batch-requests/) and always got 404 error any idea ?
   Thank You.
   
   My Environment on Docker OS ubuntu 20.04
   - apisix dashbord 2.13
   - apisix 2.15
   - etcd 3.4.15
   - nginx 1.19.0
   
   Step to reproduce  
   
   ```
    curl http://mylocalip:9080/apisix/admin/routes/br -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/apisix/batch-requests",
       "plugins": {
           "public-api": {}
       }
   }'
   ```
   
   ```
   curl --location --request POST 'http://mylocalip: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"
           }
       ]
   },
   ```
   
   
   my respond
   ```
   <html>
   <head><title>404 Not Found</title></head>
   <body>
   <center><h1>404 Not Found</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ```
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   Sorry for a newbie question but where are my conf/config.yaml ? I can't find my "conf" directory. 


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   Here are my error log .
   ![image](https://user-images.githubusercontent.com/107398226/195317921-51595d43-0713-453f-8f5e-832e5c8f551e.png)
   


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   ![image](https://user-images.githubusercontent.com/107398226/195297229-6038f854-505f-448c-ab3d-7568a0b0c04d.png)
   


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > added and still got an error. ![image](https://user-images.githubusercontent.com/107398226/195297229-6038f854-505f-448c-ab3d-7568a0b0c04d.png)
   
   If you just added it, you need to restart 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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > Here are my error log . ![image](https://user-images.githubusercontent.com/107398226/195317921-51595d43-0713-453f-8f5e-832e5c8f551e.png)
   
   Can you give me the complete log file?


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > apisix/apisix-docker/example/apisix_conf/config.yaml
   
   
   
   > Sorry for a newbie question but where are my conf/config.yaml ? I can't find my "conf" directory.
   
   
   
   > Sorry for a newbie question but where are my conf/config.yaml ? I can't find my "conf" directory.
   
   apisix/apisix-docker/example/apisix_conf/config.yaml


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   @Winniepoom  Hi, you need to config the plugin like this first, do you do it?  


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   I just restart all my docker container and it still got 404


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > > @Winniepoom  Below is the result of my execution, you can see
   > 
   > ```
   > ➜  apisix-docker git:(master) ✗ curl http://127.0.0.1:9080/apisix/admin/routes/1 \
   > -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > {
   >     "uri": "/apisix/batch-requests",
   >     "plugins": {
   >         "public-api": {}
   >     }
   > }'
   > {"action":"set","node":{"value":{"update_time":1665568096,"create_time":1665568096,"uri":"\/apisix\/batch-requests","priority":0,"status":1,"id":"1","plugins":{"public-api":{}}},"key":"\/apisix\/routes\/1"}}
   > ➜  apisix-docker git:(master) ✗
   > ➜  apisix-docker git:(master) ✗
   > ➜  apisix-docker git:(master) ✗ 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"
   >         }
   >     ]
   > }'
   > [{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed, 12 Oct 2022 09:48:50 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 Route Not Found\"}\n","status":404},{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed, 12 Oct 2022 09:48:50 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 Route Not Found\"}\n","status":404}]
   > ➜  apisix-docker git:(master) ✗
   > ```
   
   @Winniepoom  sorry,  there is a problem with the code in my previous post, you can try again according to what I wrote


-- 
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] tokers commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > /apisix/batch-requests
   
   Are you sure the batch-requests plugin is enabled?


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   Thank a lot guys


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   Too bad. Still got error 404 .
   But when I try to config route in my dashboard it throw an waring like this   


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   ```
   root@apisix:/home/apisix/apisix-docker/example# curl http://192.168.32.158:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/apisix/batch-requests",
       "plugins": {
           "public-api": {}
       }
   }'
   
   {"action":"set","node":{"value":{"uri":"\/apisix\/batch-requests","priority":0,"plugins":{"public-api":{}},"update_time":1665568453,"id":"1","create_time":1665568361,"status":1},"key":"\/apisix\/routes\/1"}}
   
   
   root@apisix:/home/apisix/apisix-docker/example# curl --location --request POST 'http://192.168.32.158: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"
           }
       ]
   }'
   
   
   <html>
   <head><title>404 Not Found</title></head>
   <body>
   <center><h1>404 Not Found</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   root@apisix:/home/apisix/apisix-docker/example#
   ```
   
   Sorry But still don't work for me .


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > 
   
   when i delete the batch-request  from my config, I reproduced your error.  I found the log error in my  log file.  So you can look at your log
   ![gcOqVNodOI](https://user-images.githubusercontent.com/30279880/195314841-411cd224-9e22-4923-b4da-638e5b512b6b.jpg)
   ![048AJXbeBm](https://user-images.githubusercontent.com/30279880/195314882-886b155c-86c8-4184-8f85-0881694ade5e.jpg)
   


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   Ohh I'm not Config that yet.  Let me try that a moment.
   
   > @Winniepoom Hi, you need to config the plugin like this first, do you do it?
   > 
   > curl http://127.0.0.1:9180/apisix/admin/plugin_metadata/batch-requests -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "max_body_size": 4194304 }'
   
   Ohh I'm not Config that yet.  Let me try that a moment.


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > Here are my error log . ![image](https://user-images.githubusercontent.com/107398226/195317921-51595d43-0713-453f-8f5e-832e5c8f551e.png)
   When I delete the batch-request from my config, I reproduced your error. I find the same error content with you  in my log file,  can you find the content "failed to load plugin .." ?
   
   ![image](https://user-images.githubusercontent.com/30279880/195477347-435bd9aa-5c9d-4485-9f2f-693c2e61cd60.png)
   
   


-- 
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] hf400159 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   https://apisix.apache.org/docs/apisix/plugins/batch-requests/#enabling-the-plugin  @Winniepoom  By the way, have you seen this title? From the results, you did not notice the title. Can you help optimize this document?


-- 
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] Winniepoom closed issue #8078: help request: About Batch Request Always got 404 error

Posted by GitBox <gi...@apache.org>.
Winniepoom closed issue #8078: help request: About Batch Request Always got 404 error
URL: https://github.com/apache/apisix/issues/8078


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > > @Winniepoom Hi, you need to config the plugin like this first, do you do it?
   > > curl http://127.0.0.1:9180/apisix/admin/plugin_metadata/batch-requests -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "max_body_size": 4194304 }'
   > 
   > Ohh I'm not Config that yet. Let me try that a moment.
   
   if you have added the batch-requests  in the  config.yaml ?


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > Below is the result of my execution, you can see
   
   ➜  apisix-docker git:(master) ✗ curl http://127.0.0.1:9080/apisix/admin/routes/br \
   -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/batch-requests",
       "plugins": {
           "public-api": {
               "uri": "/apisix/batch-requests"
           }
       }
   }'
   {"action":"set","node":{"value":{"update_time":1665565821,"create_time":1665562773,"uri":"\/batch-requests","priority":0,"status":1,"id":"br","plugins":{"public-api":{"uri":"\/apisix\/batch-requests"}}},"key":"\/apisix\/routes\/br"}}
   ➜  apisix-docker git:(master) ✗ 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"
           }
       ]
   }'
   [{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed, 12 Oct 2022 09:10:34 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 Route Not Found\"}\n","status":404},{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed, 12 Oct 2022 09:10:34 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 Route Not Found\"}\n","status":404}]
   ➜  apisix-docker git:(master) ✗ 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"
           }
       ]
   }'
   [{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed, 12 Oct 2022 09:10:45 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 Route Not Found\"}\n","status":404},{"headers":{"Connection":"keep-alive","Content-Type":"text\/plain; charset=utf-8","Server":"APISIX\/2.15.0","Transfer-Encoding":"chunked","Date":"Wed, 12 Oct 2022 09:10:45 GMT"},"reason":"Not Found","body":"{\"error_msg\":\"404 Route Not Found\"}\n","status":404}]
   ➜  apisix-docker git:(master) ✗
   
   


-- 
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] Hazel6869 commented on issue #8078: help request: About Batch Request Always got 404 error

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

   > 
   
   apisix/apisix-docker/example/apisix_conf/config.yaml


-- 
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] Winniepoom commented on issue #8078: help request: About Batch Request Always got 404 error

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

   When I try to reproduce like you I got another error "404 Route Nit Found"
   ![image](https://user-images.githubusercontent.com/107398226/195305575-31289d33-d8e5-48f1-82f7-85e0fa9be1a4.png)
   
   > root@apisix:/home/apisix# curl http://192.168.32.158:9080/apisix/admin/routes/br -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > > {
   > >     "uri": "/batch-requests",
   > >     "plugins": {
   > >         "public-api": {
   > >             "uri": "/apisix/batch-requests"
   > >         }
   > >     }
   > > }'
   > {"node":{"key":"\/apisix\/routes\/br","value":{"plugins":{"public-api":{"uri":"\/apisix\/batch-requests"}},"update_time":1665566648,"id":"br","uri":"\/batch-requests","priority":0,"status":1,"create_time":1665566648}},"action":"set"}
   > root@apisix:/home/apisix# curl --location --request POST 'http://192.168.32.158: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"
   > >         }
   > >     ]
   > > }'
   > {"error_msg":"404 Route Not Found"}
   > root@apisix:/home/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