GithubHelp home page GithubHelp logo

set_target with hostname fails about kong HOT 5 OPEN

cdowey-r7 avatar cdowey-r7 commented on May 24, 2024
set_target with hostname fails

from kong.

Comments (5)

ADD-SP avatar ADD-SP commented on May 24, 2024 1

I created an internal ticket (KAG-3500) to track this issue.

from kong.

chobits avatar chobits commented on May 24, 2024 1

hi, it's a conflict between the doc and its internal impelmentation, currently dns balancer will not actively resolve your setting host. using (KAG-3500) to track it.

Currently your resolved method, using dns_client to resolve it, is ok.

from kong.

chronolaw avatar chronolaw commented on May 24, 2024

@chobits , do we have any update about this issue?

from kong.

chobits avatar chobits commented on May 24, 2024

hi

This error log was reported by Kong.balancer() , it seems balancer module does not do dns lookup for it, I still need some time to check


BTW for your code,

local ok, err1 = kong.service.set_target("example.com", 443)
if not ok then
kong.log.err(err1)
return
end

you dont need to check return value like ok, err1 of kong.service.set_target, this function has no return value, it always successes.

from kong.

github-actions avatar github-actions commented on May 24, 2024

This issue is marked as stale because it has been open for 14 days with no activity.

from kong.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.