You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "mayunSaicmotor (via GitHub)" <gi...@apache.org> on 2023/12/13 15:31:47 UTC
[I] help request: java plugin does not work [apisix]
mayunSaicmotor opened a new issue, #10649:
URL: https://github.com/apache/apisix/issues/10649
### Description
Dear,
I started apisix(docker) on linux centos , but I tried to acess java plugin, but got error as below:
{"error_msg":"unknown plugin [ext-plugin-pre-req]"}
**I tried to fix this issue for 2 weeks, but failed, please help me!**
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]"}
main steps as below
1.git clone https://github.com/apache/apisix-docker.git
2. change docker-compose.yml as below

3.change apisix_conf/config.yaml as below

4. start docker “ docker-compose -p docker-apisix up -d”

5.enable the plugin ext-plugin-pre-req via dashboard

6. try to access the demoFIlter plugin
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
}
}
}'
### Environment
APISIX 3.7.0
Operating system linux centos 7
used docker compose to start the example from docker-apisix.
all docker container info as bellow

--
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
Re: [I] help request: java plugin does not work [apisix]
Posted by "mayunSaicmotor (via GitHub)" <gi...@apache.org>.
mayunSaicmotor closed issue #10649: help request: java plugin does not work
URL: https://github.com/apache/apisix/issues/10649
--
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
Re: [I] help request: java plugin does not work [apisix]
Posted by "yijieshusheng-git (via GitHub)" <gi...@apache.org>.
yijieshusheng-git commented on issue #10649:
URL: https://github.com/apache/apisix/issues/10649#issuecomment-1866116636
非常感谢大佬
--
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
Re: [I] help request: java plugin does not work [apisix]
Posted by "mayunSaicmotor (via GitHub)" <gi...@apache.org>.
mayunSaicmotor commented on issue #10649:
URL: https://github.com/apache/apisix/issues/10649#issuecomment-1854956969
<img width="1105" alt="image" src="https://github.com/apache/apisix/assets/22955377/eb38ed8e-5ff6-4a3f-9a00-3f855f4f604e">
--
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