Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.19.2] Possible Unhandled Promise Rejection (id: 0): Error: Promise timed out #954

Closed
efstathiosntonas opened this issue Jun 7, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@efstathiosntonas
Copy link

efstathiosntonas commented Jun 7, 2024

I get this on app start:

Possible Unhandled Promise Rejection (id: 0):
Error: Promise timed out
Error: Promise timed out

and later on:

Promise Rejection Handled (id: 0):
 WARN    This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id 0.
  • analytics-react-native version: 2.19.2
  • Integrations versions (if used):
  • React Native version: 0.74.2
  • iOS or Android or both? Both

Steps to reproduce

Expected behavior
don't know
Actual behavior
throws promise timeout

@efstathiosntonas efstathiosntonas added the bug Something isn't working label Jun 7, 2024
@efstathiosntonas
Copy link
Author

efstathiosntonas commented Jun 7, 2024

It appears that this is happening only on 2.19.2, downgrading to 2.19.1 does not throw the rejection any more.

@gitwilliam
Copy link

gitwilliam commented Jun 10, 2024

It may be unrelated, but I was getting the same error mentioned in the OP and also: Queue timeout before completed restoration. Downgrading to 2.19.1 resolved both of them.

@alanjcharles
Copy link
Contributor

hi folks thanks for the report- will prioritize this and follow up asap.

@alanjcharles
Copy link
Contributor

@efstathiosntonas @gitwilliam At present, the only PR I can find related to this issue is #943. From what I can tell in my investigation so far, these errors on app launch are expected and described in detail in that PR mentioned above. The change was introduced to prevent flushing before plugins (including SegmentDestination) are initialized. I can reproduce the warnings you are seeing but I am not experiencing any event loss.

Please let me know if you are experiencing event loss or any other unintended/regressive behavior and we can go from there.

@jvgeee
Copy link

jvgeee commented Jun 12, 2024

@alanjcharles No event loss, but I'm getting these errors every few seconds when running my app (not just at app launch). Please have them as opt-in through a config flag or something, it's clogging up my debug terminal!

image

@efstathiosntonas
Copy link
Author

@alanjcharles same as @jvgeee, It’s clogging the terminal and it’s really annoying since our minds automatically tries to find out what is going on when we see a promise rejection happening 😂

@paulina-grunwald
Copy link

I have same problems. any solutions?

@engineeringcontractorstockpile

We also have that here.

@efstathiosntonas efstathiosntonas changed the title Possible Unhandled Promise Rejection (id: 0): Error: Promise timed out [2.19.2] Possible Unhandled Promise Rejection (id: 0): Error: Promise timed out Jun 13, 2024
@dwxw
Copy link

dwxw commented Jun 17, 2024

Same here.

@ijhar8
Copy link

ijhar8 commented Jun 19, 2024

getting same error on 2.19.1 with sdk "expo": "50.0.19"

@AuroPick
Copy link

same warning on 2.19.1

@hvardhan-unth
Copy link
Contributor

Addressed in #966

@thianphat
Copy link

Addressed in #966

Getting this still

@leethree
Copy link
Contributor

leethree commented Jul 1, 2024

I think the PR just ignores all the promise rejections instead of addressing the real issue.

@bhandanyan-nomad
Copy link

"Error: Queue timeout before completed restoration" persists (version: 2.19.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests