-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Uncaught TypeError: interop.NSErrorWrapper is not a function #1
Comments
@farfromrefug is there any update on this? I also notice the exact same thing on iOS with latest NativeScript 8.8 and latest plugin version 6.4.8. |
@felixkrautschuk ok i see the error will fix right away. Sorry for the delay |
@felixkrautschuk @kmahelona just published 6.4.9 could you try? Sorry for the long long long delay... |
@farfromrefug thanks for your quick response! Unfortunately, 6.4.9 has a similar error: I tried to check what |
Ah, I see you alredy noticed that some time ago, NSErrorWrapper is missing in v8 ios runtime |
@felixkrautschuk indeed i forgot about it and was looking at the typings before and it is still there ... |
@felixkrautschuk new version available |
@farfromrefug thanks for the new version. Unfortunately, the app is still crashing with the native error.
So the Promise from initFromUrl method is being rejected as expected, so I see error message in the console. I tried to wrap the whole thing in a try-catch, but it does not help (probably because the whole initUrl is asynchronous). |
@kmahelona what s the crash log now? it cant be the same and i need it |
In my case, I have no internet connection so I want the app to show an error dialog. But in addition, the app crashes and that is not the expected behavior The error is the following:
|
@felixkrautschuk did you catch that error? cause the error is totally normal here |
Yes the error itself ist correct but the app crashes. I try to wrap everything into a try catch block but the app is still crashing |
@felixkrautschuk are you sure it is not crashing later on? |
Yes I am sure. If I comment that throw statement in the plugin code, only the Promise of the initFromUrl method is being rejected and the app continues to run, which is what I would expect. |
Yes you are with async and try/catch await |
Unfortunately, this doen't help. The app is still crashing.
I see the message in the console but in addition, the app crashes
|
I created a new NS app as a sample project: |
@felixkrautschuk Ok i ll look At it but won't be before november |
@felixkrautschuk new version published with the fix! |
@farfromrefug sorry for late reply. Not it is working as expected, thank you for the fix! |
Summary
When calling
.initFromUrl
in iOS, if the file at the URL is invalid (e.g. an empty file), the player throws an error,I'm unable to catch this error and prevent the app from crashing.
The text was updated successfully, but these errors were encountered: