Skip to content

Provider did not reconnect successfully within 5s. Emitting ERROR event... #2053

Open

Description

@ashish20790

We are getting intermittent errors while trying to fetch flags from AWS APpConfig. Please see logs with DEBUG enabled.

`
Sep 17, 10:37:30.002
INFO
2026-09-17T05:07:30.002Z debug http/http_sync.go:127 fetching configuration from http://localhost:2772/applications/ngcom-global-dev/environments/default/configurations/subscription {"component": "sync", "sync": "http"}

Sep 17, 10:37:30.002
INFO
2026-09-17T05:07:30.002Z debug http/http_sync.go:127 fetching configuration from http://localhost:2772/applications/ngcom-global-dev/environments/default/configurations/checkout {"component": "sync", "sync": "http"}

Sep 17, 10:37:32.207
INFO
Provider did not reconnect successfully within 5s. Emitting ERROR event...

`

Without Debug Flag enabled for Flags, below were the logs.

{"@timestamp":"2026-09-17T07:24:29.374Z","ecs.version":"1.2.0","log.level":"INFO","message":"Provider flagd transitioned from state READY to state STALE","process.thread.name":"openfeature-event-emitter-thread-84","log.logger":"dev.openfeature.sdk.FeatureProviderStateManager"} {"@timestamp":"2026-09-17T07:24:34.374Z","ecs.version":"1.2.0","log.level":"ERROR","message":"Provider did not reconnect successfully within 5s. Emitting ERROR event...","process.thread.name":"flagd-provider-thread-1","log.logger":"dev.openfeature.contrib.providers.flagd.FlagdProvider"} {"@timestamp":"2026-09-17T07:24:34.374Z","ecs.version":"1.2.0","log.level":"INFO","message":"Provider flagd transitioned from state STALE to state ERROR","process.thread.name":"openfeature-event-emitter-thread-84","log.logger":"dev.openfeature.sdk.FeatureProviderStateManager"} {"@timestamp":"2026-09-17T07:24:41.374Z","ecs.version":"1.2.0","log.level":"INFO","message":"Initializing sync stream observer","process.thread.name":"flagd-sync-retry-scheduler","log.logger":"dev.openfeature.contrib.providers.flagd.resolver.process.storage.connector.sync.SyncStreamQueueSource"} {"@timestamp":"2026-09-17T07:24:41.378Z","ecs.version":"1.2.0","log.level":"INFO","message":"Provider flagd transitioned from state ERROR to state READY","process.thread.name":"openfeature-event-emitter-thread-84","log.logger":"dev.openfeature.sdk.FeatureProviderStateManager"}

Does anybody has any idea about what could be the cause.

Below are the dependencies we are using

api 'dev.openfeature:sdk:1.20.1'
api 'dev.openfeature.contrib.providers:flagd:0.13.0'

and Flagd binary version is: v0.16.0

Activity

  1. ashish20790 commented on Oct 6, 2026

    @ashish20790
    Author

    Can somebody please have a look at it as we are continously getting such logs.

  2. ashish20790 commented on Oct 12, 2026

    @ashish20790
    Author

    Some more logs:

    2026-10-12T06:30:20.001Z debug http/http_sync.go:127 fetching configuration from http://localhost:2772/applications/ngcom-global-dev/environments/default/configurations/profile {"component": "sync", "sync": "http"} 2026-10-12T06:30:30.001Z debug http/http_sync.go:127 fetching configuration from http://localhost:2772/applications/ngcom-global-dev/environments/default/configurations/profile {"component": "sync", "sync": "http"} 2026-10-12T06:30:33.711Z debug store/store.go:368 context cancellation while watching flags {"selector": "<none>", "error": "context deadline exceeded"} 2026-10-12T06:30:33.711Z debug flag-sync/handler.go:118 server-side deadline of 0s exceeded, exiting stream request with grpc error code 4 {"component": "FlagSyncService"} 2026-10-12T06:30:37.812Z debug telemetry/builder.go:186 OpenTelemetry Error: traces export: failed to send to http://otel-collector-ds-opentelemetry-collector.sre-observability.svc.cluster.local:4317/: 415 Unsupported Media Type (body: (empty)) {"component": "otel"} {"@timestamp":"2026-10-12T06:30:38.716Z","ecs.version":"1.2.0","log.level":"ERROR","message":"Provider did not reconnect successfully within 5s. Emitting ERROR event...","process.thread.name":"flagd-provider-thread-1","log.logger":"dev.openfeature.contrib.providers.flagd.FlagdProvider","dt.cost.costcenter":"global-dev","dt.entity.host":"HOST-27E73748705C5A2F","dt.entity.kubernetes_cluster":"KUBERNETES_CLUSTER-F22D7ED5A0BAF8D1","dt.entity.process_group":"PROCESS_GROUP-D9963541374B3380","dt.entity.process_group_instance":"PROCESS_GROUP_INSTANCE-E67DD1FE55E96FA6","dt.kubernetes.cluster.id":"16edf856-63b3-4304-bfce-0ab50d586b94","dt.kubernetes.workload.kind":"replicaset","dt.kubernetes.workload.name":"comprofileas-577956d75","k8s.cluster.name":"Use1NgcomPreprodTier2BlueEksCluster","k8s.cluster.uid":"16edf856-63b3-4304-bfce-0ab50d586b94","k8s.container.name":"comprofileas","k8s.namespace.label.product":"profile","k8s.namespace.name":"profile-global-dev","k8s.node.name":"ip-10-102-49-199.ec2.internal","k8s.pod.name":"comprofileas-577956d75-8m8xk","k8s.pod.uid":"51b2de48-77e5-417d-ae75-b16ce2e69b27","k8s.workload.kind":"replicaset","k8s.workload.name":"comprofileas-577956d75"} 2026-10-12T06:30:40.002Z debug http/http_sync.go:127 fetching configuration from http://localhost:2772/applications/ngcom-global-dev/environments/default/configurations/profile {"component": "sync", "sync": "http"} 2026-10-12T06:30:47.809Z debug telemetry/builder.go:186 OpenTelemetry Error: traces export: failed to send to http://otel-collector-ds-opentelemetry-collector.sre-observability.svc.cluster.local:4317/: 415 Unsupported Media Type (body: (empty)) {"component": "otel"} 2026-10-12T06:30:50.002Z debug http/http_sync.go:127 fetching configuration from http://localhost:2772/applications/ngcom-global-dev/environments/default/configurations/profile {"component": "sync", "sync": "http"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions