Skip to content

Getting numerous Error posting diagnostic event (giving up permanently): HTTP error 401 (invalid SDK key) #180

@MVran

Description

@MVran

After init code part

if self.client.get().is_initialized():
logger.info("Launch Darkly SDK successfully initialized.")
I get "Launch Darkly SDK successfully initialized."
I've double checked sdk key and it's right as well as reading flags.
Confg is simple containing only sdk key.
self.client.set_config(Config(sdk_key))
Logs
I have started getting
Error posting diagnostic event (giving up permanently): HTTP error 401 (invalid SDK key)
Deployment is on kubernetes with multiple pods, and framework is Flask, it some race condition happening here?
Note that in local I am not getting this message.

SDK version
launchdarkly-server-sdk = "^7.4.2"

Language version, developer tools
python 3.9

OS/platform
For instance, Ubuntu 16.04

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