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/01/04 13:35:55 UTC

[GitHub] [apisix-docker] pkking commented on issue #267: bug: failed to use etcd service name as etcd endpoint

pkking commented on issue #267:
URL: https://github.com/apache/apisix-docker/issues/267#issuecomment-1004817327


   seems like the `resty-etcd` use a regular to check the etcd url, and the rule will reject the char `-`
   
   https://github.com/api7/lua-resty-etcd/blob/f75f4c551b048e00233df38ab725b46218b35de9/lib/resty/etcd/v3.lua#L240
   ```lua
       for _, host in ipairs(http_hosts) do
           local m, err = re_match(host,
               [=[([^\/]+):\/\/([\da-zA-Z.-]+|\[[\da-fA-F:]+\]):?(\d+)?$]=], "jo")
           if not m then
               return nil, "invalid http host: " .. host .. ", err: " .. (err or "not matched")
           end
   ```
   
   maybe try with `mf-etcd` instead


-- 
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