Flagsmith outage, 16 June 2023

Environment based integrations not working for Edge API

Started
Resolved
16 Jun 2023, 18:13 UTC (after 33 min)
Impact
Minor
Affected
Edge API

Is this still happening?

No. Flagsmith marked this incident resolved on 16 Jun 2023, 18:13 UTC, 33 min after it began.

Right now: Flagsmith reports all systems operational. (as of 1 Dec, 21:50 UTC) Live Flagsmith status

At a glance

Our summary from the Flagsmith incidents we have recorded since 27 Feb 2023 - how we count.

What caused it: Flagsmith's root cause analysis

On June 7th at 10:33 UTC we released a change to our Edge API as part of [this issue](https://github.com/Flagsmith/flagsmith/issues/430) that filters out server-side only features when a client API key is used. These changes also affected the logic responsible for triggering environment-level integrations, causing them to fail. **Which integrations were affected?** * Mixpanel * Segment * Heap * Webhooks * Amplitude On June 15th at 22:25 UTC we were notified by a customer that they were not seeing data populated from their integration. First thing on June 16th the engineering team began investigating the issue. The team immediately identified that the change described above had changed the signature of a function that was also used by the integrations logic. Unfortunately, this change had not been picked up by our tests or code review, and the subsequent errors were not picked up by our monitoring. **Why didn’t our tests pick this up?** The unit tests covering the integrations logic utilised mocking, meaning that the change to the method signature was not correctly identified as an issue and our end to end test suite did not include the verification of successful integrations. **Why didn’t our monitoring pick this up?** The monitoring in place to track the error rate on the function responsible was using an incorrect aggregation algorithm meaning that the threshold for alert was never breached. At 18:03 UTC on June 16th a fix was released and service was resumed to all environment-based identity integrations \(listed above\). Unfortunately, due to the implementation of the asynchronous call to the lambda function that handles the integrations, it is not possible to recover the data that was lost during this period. ### What are we doing to prevent this from happening in the future * Improving our unit tests to rely less on mocks and, where they do rely on mocks, ensuring they utilise `spec` correctly \(see unittest documentation [here](https://docs.python.org/3/library/unittest.mock.html) for further reading\) * Extending our E2E testing suite on the Edge API to include tests for all integrations. * Alerting & monitoring: * Immediately this morning, we are changing our alerting to use the correct aggregation algorithm * In the near future, we will be improving these alerts to use percentiles and anomaly detection to ensure that errors are picked up quicker and are more accurate * Introducing Sentry to better track error logs that are...

Read the full postmortem from Flagsmith

Last update from Flagsmith

On June 7th at 10:33 UTC we released a change to our Edge API as part of [this issue](https://github.com/Flagsmith/flagsmith/issues/430) that filters out server-side only features when a client API key is used. These changes also affected the logic responsible for triggering environment-level integrations, causing them to fail. **Which integrations were affected?** * Mixpanel * Segment * Heap * Webhooks * Amplitude On June 15th at 22:25 UTC we were notified by a customer that they were not seeing data populated from their integration. First thing on June 16th the engineering team began investigating the issue. The team immediately identified that the change described above had changed the...

21 Jun 2023, 10:26 UTC

Read the full incident on the official Flagsmith status page

Similar Flagsmith incidents

Earlier incidents with the same affected part or wording - useful to see how long this kind of problem usually takes.

  1. , resolved after 1 h 44 min

    Data parsing issues in Edge API

  2. , resolved after 2 days

    Small number of intermittent requests to Edge API failingPostmortem

  3. , resolved after 1 h 9 min

    Increased error rates on the Edge APIPostmortem

  4. , resolved after 1 h

    Identity integrations are not being triggeredPostmortem

  5. , resolved after 29 min

    Slow response times for Edge API requestsPostmortem

Other recent Flagsmith incidents

  1. Admin and SDK API outage

  2. Delays processing flag changes

  3. Numeric values incorrectly being converted to numbers in environment documentsPostmortem

  4. Task processor down

  5. Delayed asynchronous task processing

  6. Flagsmith dashboard not loading

  7. Public Website DownPostmortem

  8. Issues persisting identities with empty trait values

All recorded Flagsmith incidents

Something wrong on this page?

A person reads every report. We fix our own mistakes - wording, mapping, a moved status page; the status itself always comes from Flagsmith's official page. How we handle corrections.

Thanks - your report is on its way to us. We read every one.