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

Error: Uncaught (in promise): false errors #11341

Closed
basvdijk opened this issue Apr 24, 2017 · 6 comments
Closed

Error: Uncaught (in promise): false errors #11341

basvdijk opened this issue Apr 24, 2017 · 6 comments
Assignees

Comments

@basvdijk
Copy link

Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[X] 3.x

I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

In general I see a lot errors in Sentry of which I think are all related to toast and popups. Which might also be related to the NavController. I cannot reproduce these since they occur on my customers app installations.

Error: Uncaught (in promise): false
  at g (/build/polyfills.js:3:7133)
  at l (/build/polyfills.js:3:6251)
  at l (/build/polyfills.js:3:5937)
  at None (/build/polyfills.js:3:6765)
  at t.invokeTask (/build/polyfills.js:3:15213)
Error: Uncaught (in promise): false
  at g (/android_asset/www/build/polyfills.js:3:7133)
  at l (/android_asset/www/build/polyfills.js:3:6251)
  at None (/android_asset/www/build/polyfills.js:3:5607)
  at Object.e.reject (/android_asset/www/build/main.js:25:10925)
  at t._postViewInit (/android_asset/www/build/main.js:25:13148)

Expected behavior:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.3
ios-deploy version: Not installed
ios-sim version: 5.0.13
OS: OS X El Capitan
Node Version: v7.2.0
Xcode version: Xcode 8.2.1 Build version 8C1002
@manucorporat
Copy link
Contributor

@basvdijk Are you using ionViewCanLeave or ionViewCanEnter?

@basvdijk
Copy link
Author

@manucorporat No nothing of these two. I had this problem before, first I had:

toast.present();
this.nav.pop();

then later I tried

this.nav.pop().then(() => toast.present());

@manucorporat
Copy link
Contributor

So you don't use ionViewCanLeave/ionViewCanEnter in your app at all?

why do you think it is related with Toast?

@manucorporat
Copy link
Contributor

this.nav.pop().then(() => toast.present());

works but:

toast.present();
this.nav.pop();

does not?

@basvdijk
Copy link
Author

No they both work, I thought the problem was the present() was not finished while I already was navigating to another page.

I use Alert and Toast through my app. I've got the Uncaught (in promise): false sometimes while developing. This was when I wanted to show a toast or an alert. Therefore I thought it is related to one of these when I saw the same errors in Sentry.

Also since the error doesn't occur all the time and imho quite random I guess it could be a race condition. This race condition could make sense for presenting a toast and navigating away from the page.

@ionitron-bot
Copy link

ionitron-bot bot commented Apr 24, 2018

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Apr 24, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants