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 2021/10/14 13:29:44 UTC

[GitHub] [apisix] nic-6443 commented on issue #5233: request help: no host allowed while connecting to upstream

nic-6443 commented on issue #5233:
URL: https://github.com/apache/apisix/issues/5233#issuecomment-943359455


   At present, the APISIX nacos plug-in does not perform dns resolution on the back-end host it gets ([code location](https://github.com/apache/apisix/blob/master/apisix/discovery/nacos.lua#L303-L330)), so if the domain name is configured in nacos, it will be directly used as the parameter of `balancer.set_current_peer`, which will lead to `no host allowed While connecting to upstream` error. 
   The configuration node on the Dashboard page will first do dns query and then give `balancer.set_current_peer`, so it can work. [code location](https://github.com/apache/apisix/blob/master/apisix/init.lua#L166-L166)
   So the error you encountered is in line with expectations, we can further consider whether service discovery should support configuration in the form of domain names.
   


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