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

TypeError: Cannot read property 'getType' of null - Only on mac #121

Open
angelo558 opened this issue Aug 30, 2020 · 3 comments
Open

TypeError: Cannot read property 'getType' of null - Only on mac #121

angelo558 opened this issue Aug 30, 2020 · 3 comments

Comments

@angelo558
Copy link

Hello guys,
electron version:9.0.5
electron-dl: 3.0.1

I have an issue: electron-dl throw a
"Uncaucght exception : typeError: cannot read property 'getType' of null at Session.listener (/users.macbookpro/Desktop/.../node_modules/electron-dl/index.js:36:19) at session.emit"
It works perfectly on windows but on Mac it throws this error. On the issue 27 someone talked about an error with the url but the url I use seems fine. I never developped for Mac it may be because of that...

Thanks in advance and have a nice day!

@alibosworth
Copy link

@angelo558 is that version of your app a "Mac App Store" build? We are encountering an issue which appears to only affect MAS builds and trying to debug

@jh3y
Copy link

jh3y commented Oct 15, 2020

Is the URL for a local file?
Have you tried adding the file protocol? file:/// prepended to the URL fixed this issue for me 👍

@milkmanmatty
Copy link

Any malformed URL will give this error. The amount of time I spent debugging why electorn-dl thought the BrowserWindow object was null is a sad monument to my intellect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants