segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
367 stars 191 forks source link

Error: Promise timed out #982

Closed lucasoliveiraw00 closed 4 weeks ago

lucasoliveiraw00 commented 3 months ago

I'm facing a "Promise timed out" error in my application. Is anyone else having this issue?

Captura de Tela 2024-08-01 às 21 22 52 Captura de Tela 2024-08-01 às 21 29 34

kip-west commented 3 months ago

I'm facing a "Promise timed out" error in my application. Is anyone else having this issue?

Captura de Tela 2024-08-01 às 21 22 52 Captura de Tela 2024-08-01 às 21 29 34

  • analytics-react-native version: 2.19.2
  • Integrations versions (if used):
  • React Native version: 0.73.8
  • iOS or Android or both? Android

I am also having this issue!

analytics-react-native version: 2.19.2 Integrations versions (if used): React Native version: 0.73.6 iOS or Android or both? both

bit-scrambler commented 3 months ago

Same for me.

efstathiosntonas commented 3 months ago

Duplicate of: https://github.com/segmentio/analytics-react-native/issues/954 which shouldn't be closed.

This issue is around for 2 months and no one from segment team cares to fix. 👎

amkiran commented 3 months ago

I am having the issue too. Any updates?

alanjcharles commented 2 months ago

@efstathiosntonas @amkiran @bit-scrambler @kip-west @lucasoliveiraw00 apologies for the inconvenience and delay here, folks. To be honest, we have had some unexpected turnover recently and are working to re-align as quickly as possible.

The original purpose for adding this error was to actually surface initialization issues for customers and help ensure events created before initialization were successfully sent to Segment when they would be expected to be sent. The unintended consequence has been a noisy debugging experience for a lot of folks. For that we do apologize, however the original goal was to provide better logging/reporting and is not the result of a regression to the SDK. Here is the original PR with this change for your reference.

I have just merged a PR that should make this error a lot less noisy while still providing its intended value. I am not seeing any warnings or logs in my latest build but please let me know if that is not the case for you and we can go from there. I will publish a release first thing next Monday. Thanks again for your patience here.

image

smfunder commented 1 month ago

@alanjcharles I've updated Segment to all the latest as possible an unfortunately I'm still receiving the promise timeout issue. Looks like to be on the utils file and I found it is only called on the QueueFlushingPlugin. To me it is happening all the time.

I have: "@segment/analytics-react-native": "^2.19.5", "@segment/sovran-react-native": "^1.1.2",

React Native: 0.73.1

And this is my Sentry log. I'm now muting this error from Sentry because it is too noisy.

Captura de pantalla 2024-10-07 a la(s) 2 42 58 p  m

Oh one more thing, this is happening to me in both iOS and Android.