Getting the following GRPC error: ```Error: Connec...
# ask-the-community
e
Getting the following GRPC error:
Copy code
Error: Connection Info: [Endpoint: dns:///<my-endpoint>, InsecureConnection?: true, AuthMode: ClientSecret]: rpc error: code = Unavailable desc = connection closed before server preface received
I’ve noticed the ingress I’ve set up by following the GCP instructions only exposes the console ports `8031033/TCP,44331779/TCP`… Does GRPC need another port?
s
@Enrico Rotundo, could you please search in https://discuss.flyte.org? When I searched for "connection closed before server preface received" error, I've come across a handful of threads.
Let us know if you find the threads helpful.
e
Found a solution by searching through the link above thanks! For the record, I’ve changed the
authType, insecure, insecureSkipVerify
values provided in the docs with the following:
Copy code
admin:
 # For GRPC endpoints you might want to use dns:///flyte.myexample.com
 endpoint: dns:///<HOSTNAME>
 authType: Pkce
 insecure: false
 insecureSkipVerify: true # only required if using a self-signed cert. Caution: not to be used in production
logger:
 show-source: true
 level: 6
storage:
  type: stow
  stow:
    kind: google
    config:
      json: ""
      project_id: <YOUR-GCP-PROJECT> # GCP Project ID
      scopes: <https://www.googleapis.com/auth/devstorage.read_write>
  container: <YOUR-GCS-BUCKET> # GCS Bucket Flyte is configured to use
Side note: the above works I’ve turned off the Cloudflare’s proxy