Skip to content

Failed events are not respecting retryInterval option #448

@AlexanderEggers

Description

@AlexanderEggers

When an event cannot be send due to an network/server or whatever reason, the sdk will retry sending the event every second and never seems to stop.

  • analytics-react-native version: v2.1.3-beta
  • React Native version: 0.67.2
  • iOS or Android or both? both

Steps to reproduce

  • Use a default project template
  • Add segment
  • Have the network call fail due to missing vpn connection or similar which creates a TypeError: Network request failed error.

Expected behavior

  • Failed events should respect the retry interval

Actual behavior

  • Failed events retry is after 1 second instead of using the 60 second default interval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions