wxbty opened a new issue, #8382: URL: https://github.com/apache/apisix/issues/8382
### Description 1、Start apisix with docker: git clone https://github.com/apache/apisix-docker.git cd apisix-docker/example docker-compose -p docker-apisix up -d 2、add dubbo-proxy plugin vim example/dashboard_conf/conf.yaml remove # in front of dubbo-proxy plugins: # plugin list (sorted in alphabetical order) - api-breaker - authz-keycloak - basic-auth - batch-requests - consumer-restriction - cors - dubbo-proxy - echo 3、 reload curl http://127.0.0.1:9180/apisix/admin/plugins/reload -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT 4、create route,refer to https://apisix.apache.org/zh/blog/2022/01/13/how-to-proxy-dubbo-in-apache-apisix/#%E5%85%A5%E9%97%A8%E7%AF%87%E5%AE%89%E8%A3%85%E4%BD%BF%E7%94%A8 curl http://127.0.0.1:9180/apisix/admin/upstreams/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "nodes": { "127.0.0.1:20880": 1 }, "type": "roundrobin" }' curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "host": "127.0.0.1", #There is a problem in the document,missing a comma here "uris": [ "/demo" ], "plugins": { "dubbo-proxy": { "service_name": "org.apache.dubbo.springboot.demo.DemoService", "service_version": "0.0.0", "method": "sayHello" } }, "upstream_id": 1 }' Here returns the error: {"error_msg":"unknown plugin [dubbo-proxy]"} There are some warnings in the log,like #8318 : 2022/11/23 07:43:11 [warn] 47#47: *17222 [lua] init.lua:309: sync_local_conf_to_etcd(): sync local conf to etcd, client: 172.18.0.1, server: , request: "PUT /apisix/admin/plugins/reload HTTP/1.1", host: "127.0.0.1:9180" 2022/11/23 07:43:11 [warn] 51#51: *17224 [lua] plugin.lua:250: load_stream(): new plugins: {"ip-restriction":true,"syslog":true,"limit-conn":true,"mqtt-proxy":true}, context: ngx.timer 2022/11/23 07:43:11 [warn] 48#48: *17223 [lua] plugin.lua:250: load_stream(): new plugins: {"ip-restriction":true,"syslog":true,"limit-conn":true,"mqtt-proxy":true}, context: ngx.timer 2022/11/23 07:43:17 [warn] 47#47: *47 [lua] v3.lua:733: request_chunk(): http://etcd:2379: failed to parse domain: failed to parse domain. Retrying, context: ngx.timer 2022/11/23 07:43:17 [warn] 47#47: *46 [lua] v3.lua:733: request_chunk(): http://etcd:2379: failed to parse domain: failed to parse domain. Retrying, context: ngx.timer 2022/11/23 07:43:17 [warn] 47#47: *40 [lua] v3.lua:733: request_chunk(): http://etcd:2379: failed to parse domain: failed to parse domain. Retrying, context: ngx.timer ### Environment - APISIX version (run `apisix version`): 3.0.0 - Operating system (run `uname -a`): mac m1 - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): openresty/1.21.4.1;built by gcc 10.2.1 20210110 (Debian 10.2.1-6);built with OpenSSL 1.1.1n 15 Mar 2022 - 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
