analytics-react-native: Queue timeout before completed restoration

  • analytics-react-native version: ^2.19.2
  • Integrations versions (if used): N/A
  • React Native version: 0.72.1 AND 0.74.3
  • iOS or Android or both? BOTH

Screenshot 2024-07-10 at 1 04 04 PM

Steps to reproduce Send various screen and track events

Here is an example screen event I am sending: SCREEN event saved {"name": "TEST_SCREEN", "properties": {"_environment": "LOCAL", "_otaVersion": "N/A"}, "type": "screen"}

Expected behavior No warning Actual behavior This warning appears multiple times per session. However, the events are shown properly in the segment console

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 12
  • Comments: 21 (1 by maintainers)

Most upvoted comments

It might be related. After upgrading to 2.19.4, I keep getting this in the log

INFO Flush triggered but queue restoration and settings loading not complete. Flush will be retried.

image

+1, also getting “Flush triggered but queue restoration and settings loading not complete. Flush will be retried” only after the upgrade.

Thanks @itajenglish

installing version 2.19.4 fixed this for me.

PS: I reached out on LinkedIn

I think this has been fixed in the last release. I no longer these warnings anymore after updating.

Same here, any ideas how to suppress or silence these warnings?

I have not tried this, but the code should be something like this:

import { LogBox } from 'react-native';
// ...
LogBox.ignoreLogs(["An internal error occurred: Error: Queue timeout before completed restoration"]);

That being said, I would not recommend ignoring the warning. Segment should fix it