-
Notifications
You must be signed in to change notification settings - Fork 2k
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
xhr-upload retry upload bundle throws "error uncaught in promise" on html only site #3204
Comments
I think this is supposed to have been fixed by #3197: we noticed this error on an other package, but the problem was actually in |
This doesn't seem to be an issue anymore on the latest bundle. Assuming it is fixed. Feel free to reopen if otherwise |
I still have the error, when using uppy in an angular project. I updated my example on stackblitz to use the latest version of angular, but this doesn't change the error shown in the console: So I tried to reproduce the error in a 'html only' configuration by catching uncatched errors (see this stackblitz demo). What worries me a little bit is the fact thateven though we get a error reported in the console, the error handler of uppy is not called - shouldn't it?
And as an aside: npm shows V2.2.1 for uppy but e.g. @uppy/dashboard is still on V2.1.1 - is this ok? |
There is no uncaught promise rejection error, which is what the issue is about, as can be seen from my previously shared codesandbox based on your example. It is of course expected you'll see an network error if you are using Is there a particular problem you are experiencing or is it just logs? |
The 'uncaught promise rejection error' is only thrown when using uppy in an angular app - so angular (the npm zone package?) seems to have some secret mechanism to watch promises (just kidding). Concerning your second point: But if you state:
Shouldn't the code in the fragment
log Thank you for your patience :-) |
As a follow up to issue #1977 I created a small demo using uppy 2.1.0 with xhrupload in a pure html application in stackblitz.
Even when I use uppy without angular I get the following error in the console:
Uncaught (in promise) Error: This looks like ....
Even though the site doesn't break, I am convinced that there should not be any uncaught errors in a promise.
To be a good contributor, I was trying to find the line that finally caused the error, but unluckily I failed to trace the error down.
In core/index.js in the function
_runUpload2
it says:But I didn't find the line where the error is finally catch`ed. If you could give a few hints about the code structure, I will try to find a solution to this little problem.
The text was updated successfully, but these errors were encountered: