emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.36k stars 683 forks source link

Error getting snapshot from ambassador invalid character 'u' looking for beginning of value #4364

Open tolik93 opened 2 years ago

tolik93 commented 2 years ago

Describe the bug After setting the cloudConnectToken the edge stack agent throws this kind of warning and send anything to the Ambassador cloud:

level=warning msg="Error getting snapshot from ambassador invalid character 'u' looking for beginning of value" func="github.com/emissary-ingress/emissary/v3/pkg/agent.(*Agent).watch" file="/go/pkg/agent/agent.go:463" CMD=agent PID=1 THREAD=/watch  

To Reproduce Steps to reproduce the behavior:

  1. Generate new Token in Ambassador Cloud
  2. Set cloudConnectToken
  3. Watch edge-stack-agent Errors

Versions (please complete the following information):

cindymullins-dw commented 2 years ago

@tolik93, do you have other integrations like Istio? Is your cluster getting connected to the Cloud? In a case with similar error message, the Ambassador Agent was unable to communicate with Edge Stack. The fix was to turn off the Istio sidecar for non-essentials in the Ambassador namespace to stop the Istio sidecar from interfering with the Ambassador Agent.

tolik93 commented 2 years ago

@cindymullins-dw Thank you for your answer. Yes, I use Istio Integration and it automatically injects a sidecar Istio Proxy to all pods. It would be great, if there were a Helm Chart value option, to annotate agent pod. In my case, I have to annotate agent pod manually with sidecar.istio.io/inject: 'false'