weaver: tutorial wont multi deploy - cant resolve local hostname

this feels like an env variable problem, but its not clear which var or how to override.

when following the tutorial, i get to the multi deploy phase and i get this output when trying to hit the endpoint for the first time:

S0313 11:24:35.338221 stderr c17304c8 ] error initializing Service Weaver: error creating internal listener: listen tcp: lookup HOSTNAME.COMPANY.com: no such host

(hostname PII redacted)

it seems like it is trying to resolve my FQDN, but should really just be using localhost or the loopback IP.

FWIW, single deploy is working fine:

hello listener available on 127.0.0.1:12345
╭───────────────────────────────────────────────────╮
│ app        : hello                                │
│ deployment : ddde8609-00e3-4074-a41c-60f6fa3e4275 │
╰───────────────────────────────────────────────────╯
curl "localhost:12345/hello?name=Weaver"
Hello, revaeW!

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks @stevemcghee! That’s very helpful. I opened PR #156, which should address this issue.