analytics_flutter icon indicating copy to clipboard operation
analytics_flutter copied to clipboard

ErrorLoadingStorage

Open cerealexx opened this issue 1 year ago • 10 comments

Lately we've been spammed with these errors in iOS devices from Segment plugin:

ErrorLoadingStorage state.dart in PersistedState.init.<fn>
Error loading storage: FormatException: Unexpected character (at character 13)
{"queue":[]}anonymousId":"ff3b23a3-d9b9-42cf-be59-5574cf37da38","messageId"...

Any ideas?

cerealexx avatar May 20 '24 11:05 cerealexx

hi @cerealexx we are working on the solution, thank you for your report.

edsonjab avatar May 20 '24 18:05 edsonjab

hi @cerealexx could you help me to show me your configuration to try replicate the issue, please?

edsonjab avatar May 22 '24 05:05 edsonjab

Configuration(
  WRITE_KEY,
  trackApplicationLifecycleEvents: true,
)

cerealexx avatar May 22 '24 08:05 cerealexx

Hey, I'm getting the same error, any updates on this?

PabloTortosaLopez avatar Jul 03 '24 10:07 PabloTortosaLopez

Hi @PabloTortosaLopez , could you help us with the configuration of your project to know how can we replicate the issue? Or an example similar to your project and configuration, please?

edsonjab avatar Jul 03 '24 14:07 edsonjab

Hey @edsonjab, this is the configuration that we are using on the project, pretty straightforward.

Configuration(
                _platformKey
                trackApplicationLifecycleEvents: true,
              )

We are using segment_analytics: ^1.0.1 and flutter 3.22.2

PabloTortosaLopez avatar Jul 03 '24 14:07 PabloTortosaLopez

I'm facing the same problem, do you have any update on this?

We are using segment_analytics: 1.0.2 and flutter 3.22.1

brunosp15 avatar Jul 15 '24 14:07 brunosp15

Hey guys,

I am facing the same trouble

image

not sure if there is an workaround for that, it is really hard to replicate... not get the error while debugging yet =(

fhdeodato avatar Jul 22 '24 21:07 fhdeodato

Hello,

We are also facing the error increase. Using segments_analytics 1.0.2 and Flutter version 3.22.2.

I was not able to reproduce it while testing. It happens mostly on iOS but we also have some error logs from Android.

Screenshot 2024-07-23 at 12 44 44 Screenshot 2024-07-23 at 12 53 08 *Logs are sampled in 1%

felipefuzaro-funda avatar Jul 23 '24 10:07 felipefuzaro-funda

I see the PR is merged, thank you for that 😄

Do you have a plan to release a new plugin version?

felipefuzaro-funda avatar Aug 15 '24 09:08 felipefuzaro-funda

Hey! I see the PR with the fix is merged 🚀

When will a new version with this fix be released?

Thank you!

PabloTortosaLopez avatar Aug 28 '24 09:08 PabloTortosaLopez

@edsonjab any clue when we'll have a new version that includes this fix?

0aps avatar Aug 28 '24 23:08 0aps