mayunSaicmotor opened a new issue, #10646: URL: https://github.com/apache/apisix/issues/10646
### Current Behavior 我使用 docker-apisix 跑了apisix ,配置了一个简单java 插件,插件不生效一直报错,哪位大佬帮忙看下,跪求解答 MacBook-Pro-7:bin mayun$ curl -i http://120.78.123.93:9180/apisix/admin/routes/1 -X PUT -d ' > { > "uri": "/index.html", > "plugins": { > "ext-plugin-pre-req": { > "conf" : [ > {"name": "DemoFilter", "value": "{\"enable\":\"feature\"}"} > ] > } > }, > "upstream": { > "type": "roundrobin", > "nodes": { > "127.0.0.1:1980": 1 > } > } > }' HTTP/1.1 400 Bad Request Transfer-Encoding: chunked Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Access-Control-Expose-Headers: * Access-Control-Max-Age: 3600 Connection: keep-alive Content-Type: application/json Date: Wed, 13 Dec 2023 10:38:25 GMT Keep-Alive: timeout=4 Proxy-Connection: keep-alive Server: APISIX/3.7.0 X-Api-Version: v3 {"error_msg":"unknown plugin [ext-plugin-pre-req]"} MacBook-Pro-7:bin mayun$ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 -X PUT -d ' > { > "uri": "/index.html", > "plugins": { > "ext-plugin-pre-req": { > "conf" : [ > {"name": "DemoFilter", "value": "{\"enable\":\"feature\"}"} > ] > } > }, > "upstream": { > "type": "roundrobin", > "nodes": { > "127.0.0.1:1980": 1 > } > } > }' HTTP/1.1 400 Bad Request Transfer-Encoding: chunked Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Access-Control-Expose-Headers: * Access-Control-Max-Age: 3600 Connection: keep-alive Content-Type: application/json Date: Wed, 13 Dec 2023 10:38:25 GMT Keep-Alive: timeout=4 Proxy-Connection: keep-alive Server: APISIX/3.7.0 X-Api-Version: v3 **{"error_msg":"unknown plugin [ext-plugin-pre-req]"}** ### Expected Behavior 希望帮忙解答 调试通,我们公司想要用apisix来打造新网关,我在做调研,谢谢! ### Error Logs MacBook-Pro-7:bin mayun$ curl -i http://120.78.12.91:9180/apisix/admin/routes/1 -X PUT -d ' > { > "uri": "/index.html", > "plugins": { > "ext-plugin-pre-req": { > "conf" : [ > {"name": "DemoFilter", "value": "{\"enable\":\"feature\"}"} > ] > } > }, > "upstream": { > "type": "roundrobin", > "nodes": { > "127.0.0.1:1980": 1 > } > } > }' HTTP/1.1 400 Bad Request Transfer-Encoding: chunked Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Access-Control-Expose-Headers: * Access-Control-Max-Age: 3600 Connection: keep-alive Content-Type: application/json Date: Wed, 13 Dec 2023 10:38:25 GMT Keep-Alive: timeout=4 Proxy-Connection: keep-alive Server: APISIX/3.7.0 X-Api-Version: v3 {"error_msg":"unknown plugin [ext-plugin-pre-req]"} ### Steps to Reproduce 1.git clone https://github.com/apache/apisix-docker.git 2.docker-compose.yml 配置文件修改 <img width="1530" alt="image" src="https://github.com/apache/apisix/assets/22955377/df0af509-b255-478c-ba6a-2f90cd6d8f83"> 3.apisix配置文件 apisix_conf/config.yam文件修改 <img width="1449" alt="image" src="https://github.com/apache/apisix/assets/22955377/876ec5fa-22c8-4bda-b074-0172d35c1172"> 4.启动 docker-compose -p docker-apisix up -d <img width="1682" alt="image" src="https://github.com/apache/apisix/assets/22955377/65cbd2fe-f91a-43cc-a5e0-90985858d700"> ### Environment - APISIX 3.7.0 - Operating system linux centos 7 我使用 docker-apisix 的example 来启动的 <img width="1677" alt="image" src="https://github.com/apache/apisix/assets/22955377/4ee95cf1-1cd9-4346-9706-650e59a35107"> `): -- 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]
