Skip to content

Error handling when posthog is unable to get remote + cached feature flag #351

@wilson97

Description

@wilson97

See the snippet here:

self.log.exception(f"[FEATURE FLAGS] Unable to get flag remotely: {e}")

First, if posthog is unable to get remote flag for whatever reason, it just prints the log: [FEATURE FLAGS] Unable to get flag remotely. It then tries to fetch the cached flag value. And if that doesn't exist, it just silently fails.

I think this should throw an exception if both the cached + remote flag values don't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions