Envoy reports error with ADS stream

Looking for some help with an error reported by envoy when it receives ADS information.

I am currently running envoy version 1.14.2 and consul version 1.8.3

This is my envoy_cluster_json setting
“envoy_cluster_json”: “{”@type": “type.googleapis.com/envoy.api.v2.Cluster”, “name” : “direction-outboundc”, “type”: “EDS”, “eds_cluster_config”: { “eds_config”: { “ads”: {}} }, “connect_timeout”: “90s”}"

and this is my envoy_listener_json

“envoy_listener_json” : “{”@type": “type.googleapis.com/envoy.api.v2.Listener”, “name”: “direction-outbound”, “address”: { “pipe”: { “path”: “/tmp/Tick2Direction.sock” } }, “filter_chains”: [ { “filters”: [ { “name”: “envoy.http_connection_manager”, “config”: { “stat_prefix”: “direction-outboundc”, “route_config”: { “name”: “local_route”, “virtual_hosts”: [ { “domains”: ["*"], “routes”: [ { “match”: {“prefix”: “/”}, “route”: { “cluster”: “direction-outboundc”, “timeout”: “0s” } } ] } ] } } }, “http_filters”: [{ “name”: “envoy.router”, “config”: {}}] ] } ] }",

When I startup the envoy sidecar like so:
consul connect envoy -sidecar-for tick -grpc-addr=127.0.0.1:8502 -http-addr http://127.0.0.1:8500 -admin-bind 0.0.0.0:19000 – --log-level debug --log-path /tmp/envoy/log/envoy.log

I see this in the envoy log:

2020-09-10T15:00:17.370-0400 [DEBUG] agent.envoy: generating cluster for: cluster=ef15b5b5~direction.default.dc1.internal.2ad9a0f7-c1c3-bd85-eb51-0cb5fb8425d8.consul
2020-09-10T15:00:17.371-0400 [DEBUG] agent.envoy: generating endpoints for: cluster=direction-outboundc
2020-09-10T15:00:17.371-0400 [DEBUG] agent.envoy: Error handling ADS stream: error="invalid character ':' after array element"
2020-09-10T15:00:17.726-0400 [DEBUG] agent.envoy: generating cluster for: cluster=ef15b5b5~direction.default.dc1.internal.2ad9a0f7-c1c3-bd85-eb51-0cb5fb8425d8.consul

Thanks for your help.

Forgot to send you the envoy log snippet:

2020-09-10 15:00:20.806][3732209][debug][config] [external/envoy/source/common/config/grpc_subscription_impl.cc:68] gRPC config for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment accepted with 1 resources with version 00000001

[2020-09-10 15:00:20.806][3732209][debug][client] [external/envoy/source/common/http/codec_client.cc:104] [C0] response complete

[2020-09-10 15:00:20.806][3732209][debug][pool] [external/envoy/source/common/http/conn_pool_base.cc:93] [C0] destroying stream: 0 remaining

[2020-09-10 15:00:20.806][3732209][debug][router] [external/envoy/source/common/router/upstream_request.cc:263] [C0][S17897711008897132399] resetting pool request

[2020-09-10 15:00:20.806][3732209][debug][http] [external/envoy/source/common/http/async_client_impl.cc:122] async http request response trailers:

‘grpc-status’, ‘2’

‘grpc-message’, ‘invalid character ‘:’ after array element’

[2020-09-10 15:00:20.806][3732209][warning][config] [bazel-out/darwin-opt/bin/external/envoy/source/common/config/_virtual_includes/grpc_stream_lib/common/config/grpc_stream.h:92] StreamAggregatedResources gRPC config stream closed: 2, invalid character ‘:’ after array element

[2020-09-10 15:00:20.806][3732209][debug][config] [external/envoy/source/common/config/grpc_subscription_impl.cc:88] gRPC update for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment failed

[2020-09-10 15:00:20.806][3732209][debug][config] [external/envoy/source/common/config/grpc_subscription_impl.cc:88] gRPC update for type.googleapis.com/envoy.api.v2.Listener failed

[2020-09-10 15:00:20.806][3732209][debug][config] [external/envoy/source/common/config/grpc_subscription_impl.cc:88] gRPC update for type.googleapis.com/envoy.api.v2.Cluster failed

[2020-09-10 15:00:20.806][3732209][debug][http2] [external/envoy/source/common/http/http2/codec_impl.cc:774] [C0] stream closed: 0

Please ignore this request. I had an issue with the listener configuration. All is well.

1 Like