apisix-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [apisix] siaron opened a new issue #4891: request help: mqtt-proxy
Date Wed, 25 Aug 2021 03:21:18 GMT

siaron opened a new issue #4891:
URL: https://github.com/apache/apisix/issues/4891


   ### Issue description
   
   ```
   kubectl exec -it -n default apisix-66cc75967c-drjzl -- curl http://127.0.0.1:9180/apisix/admin/stream_routes/3
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > {
   >     "remote_addr": "0.0.0.0/24",
   >     "plugins": {
   >         "mqtt-proxy": {
   >             "protocol_name": "MQTT",
   >             "protocol_level": 4,
   >             "upstream": {
   >                 "nodes": {
   >                     "10.1.1.107:1883": 1,
   >                     "10.1.1.106:1883": 1,
   >                     "10.1.1.105:1883": 1
   >                 },
   >                 "type": "roundrobin"
   >             }
   >         }
   >     }
   > }'
   Defaulted container "apisix" out of: apisix, wait-etcd (init)
   {"error_msg":"failed to check the configuration of stream plugin [mqtt-proxy]: property
\"upstream\" validation failed: value should match only one schema, but matches none"}
   ```
   - 只能支持设置一个mqtt 代理吗?
   ```
   "upstream": {
         "host": "127.0.0.1",
         "port": 1980
     }
   ```
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the
info from server-info API):
   - apisix-dashboard version, if have:
   - luarocks version, if the issue is about installation (cmd: `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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message