Skip to content

Segment failure retries have no pause in between #497

@AlexanderEggers

Description

@AlexanderEggers

I have a setup at my home which blocks certain requests from going outside (part of that is segment) - one reason why I cannot test segment well in my wifi network but that is not an issue for me 😆

The acutal issue is that because my proxy blocks the requests from going out, the segment SDK retries failures extremely fast to a level which actually crashes devices. That is related to #448 which I thought have fixed the issue but it seems like there was a scenario missed.

@oscb I think you might have missed something in your PR #457.

  • analytics-react-native version: v2.1.9
  • React Native version: 0.68.0
  • iOS or Android or both? Android

Steps to reproduce

  • Have outgoing segment events always fail via a proxy or dns filter
  • Try sending segment events
  • You will notice that segment cannot fetch its settings but is also re-sending events extremely fast.

Expected behavior

  • Segment should respect the retry interval for re-fetching its settings and sending events.

Actual behavior

  • Sending events and settings re-fetch in an extreme speed which crashes devices.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions