apigee / apigee-remote-service-cli

Apigee Remote Service CLI
Apache License 2.0
20 stars 10 forks source link

envoy lookup for localhost is broken on MacOS #211

Closed theganyo closed 3 years ago

theganyo commented 3 years ago

Envoy DNS lookup of "localhost" is broken on MacOS (see Envoy log error below). Let's default the CLI --adapter-host to 127.0.0.1 to avoid this issue.

[2021-06-04 15:05:25.259][94106][info][main] [source/server/server.cc:764] starting main dispatch loop
[2021-06-04 15:05:25.260][94106][critical][assert] [source/common/network/apple_dns_impl.cc:306] assert failure: interface_index == 0. Details: unexpected interface_index=4294967295
[2021-06-04 15:05:25.260][94106][critical][backtrace] [bazel-out/darwin-fastbuild/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:104] Caught Abort trap: 6, suspect faulting address 0x7fff203df92e
[2021-06-04 15:05:25.260][94106][critical][backtrace] [bazel-out/darwin-fastbuild/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2021-06-04 15:05:25.260][94106][critical][backtrace] [bazel-out/darwin-fastbuild/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:92] Envoy version: 98c1c9e9a40804b93b074badad1cdf284b47d58b/1.18.3/Modified/DEBUG/BoringSSL
[1]    14326 abort      envoy -c envoy-httpbin.yaml -l info