Rocketchat keeps showing the "Connecting..." bar periodically

I have put rocketchat behind envoyproxy. The problem that I am facing is that the rocketchat keeps showing the “Connecting…” bar periodically And each time rocketchat sends the following requests:

Following is the envoyproxy config that I am using. I would really appreciate it if anyone could help me. thnx in advance.

envoy.yaml:

static_resources:

  listeners:

    - name: listener_0

      address:

        socket_address:

          address: 0.0.0.0

          port_value: 443

      filter_chains:

        - filters:

            - name: envoy.filters.network.http_connection_manager

              typed_config:

                '@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager

                stat_prefix: ingress_http

                access_log:

                  - name: envoy.access_loggers.stdout

                    typed_config: 

                      "@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog

                upgrade_configs:

                  upgrade_type: websocket

                route_config:

                  name: local_route

                  virtual_hosts:

                    - name: local_service

                      domains:

                        - '*'

                      typed_per_filter_config:

                        envoy.filters.http.ext_authz:

                          "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthzPerRoute

                          check_settings:

                            context_extensions:

                              virtual_host: local_service

                      routes:

                        #====rocketchat route config====      

                        - match:

                            prefix: '/'

                          route: 

                            cluster: service_rocketchat

                          typed_per_filter_config:

                            envoy.filters.http.ext_authz:

                              "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthzPerRoute

                              disabled: true

                

                http_filters:

                  - name: envoy.filters.http.ext_authz

                    typed_config:

                      '@type': type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz

                      http_service:

                        path_prefix: /api/auth/verify-token

                        server_uri:

                          uri: 'node-auth-server:80'

                          cluster: service_auth_server_cluster

                          timeout: 0.25s

                        authorization_response:

                          allowed_upstream_headers:

                            patterns:

                              - prefix: 'x-ag-'

                        authorization_request:

                          allowed_headers:

                            patterns:

                              - exact: 'cookie'

                  - name: envoy.filters.http.compressor

                    typed_config:

                      "@type": type.googleapis.com/envoy.extensions.filters.http.compressor.v3.Compressor

                      response_direction_config:

                        common_config:

                          min_content_length: 100

                          content_type:

                            - text/html

                            - application/json

                            - application/javascript

                        disable_on_etag_header: true

                      request_direction_config:

                        common_config:

                          enabled:

                            default_value: false

                            runtime_key: request_compressor_enabled

                      compressor_library:

                        name: text_optimized

                        typed_config:

                          "@type": type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip

                          memory_level: 3

                          window_bits: 10

                          compression_level: best_compression

                          compression_strategy: default_strategy

                  - name: envoy.filters.http.router

                  

  clusters:

    - name: service_rocketchat

      connect_timeout: 30s

      type: LOGICAL_DNS

      dns_lookup_family: V4_ONLY

      load_assignment:

        cluster_name: service_rocketchat

        endpoints:

          - lb_endpoints:

              - endpoint:

                  address:

                    socket_address:

                      address: rocketchat

                      port_value: 3002

I solved the problem by disabling the timeout of the route

...
                        #====rocketchat route config====      
                        - match:
                            prefix: '/'
                          route: 
                            cluster: service_rocketchat
                          timeout: 0s   #disables the timeout
...

Not seen this config before!

Normally the error is proxy/websocket orientated.

Glad you got it sorted!