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
Cannot read property 'port' of null at getServerUrl error #6170
Cannot read property 'port' of null at getServerUrl error #6170
Comments
That should be fixed via this PR |
@mmaietta how did something like this slip in? Is the most recent version of electron-builder published on npm not always stable? Also does this break for every release server or just certain types of release servers? In our currently deployed electron app, we can change the release server we pull from easily, but we can't downgrade the package version of electron-updater without deploying a new electron version (which they won't receive because updating is broken 😢.) It would be extremely helpful to be able to change the release server and make updating work, rather than having to force all our users to uninstall and install a new version of the app. |
Latest version (also known as stable) is 4.3.9.
This obfuscated the fact that
Honestly, this one should have been on the developer to have known/checked. I don't think it would have been caught in a standard PR review. Strict eslinting and typescript only cover so far, but it doesn't hide aspects that require that deeper level of contextual knowledge. That being said, I'd like to see if there's anything in the eslint/typescript ecosystem that can check these forced type-casts to make sure they're not hiding any potential null values. |
This was a painful one for us. Luckily we caught it right after a deploy, but it would have broken autoupdates for all of our users. |
@mmaietta How can we tell which version is stable? We've just been following along with the releases assuming they're all stable, since they all make it to npm. |
I see "pre-release" vs. "latest" tag on the Releases page: https://github.com/electron-userland/electron-builder/releases |
Hi @aguynamedben |
Is anybody seeing this on electron-updater 4.4.6? We're still investigating, but we did an alpha build of our app with electron-updater bumped to 4.4.6 and seem to still be seeing this error when trying auto-updates from a build with electron-updater 4.4.6. I'll report back, but we're scratching our heads to make sure 4.4.6 fixes the error. |
@aguynamedben is it the same error message? Have you been able to repro? |
@mmaietta We are not seeing this on 4.4.6. My bad! We had a bad build that had 4.4.5 (bad version) even though the intention was for it to have 4.4.6. We're not seeing this error on 4.4.6, and given our review of the change do not expect to see it on 4.4.6 or higher. |
4.4.6 has it fixed |
I get this error when I call autoUpdater.downloadUpdate() in my electron application. it used to work consistently until i upgraded from 4.3.9 to 4.4.5 (which had an urgent bugfix I needed for developing on M1 macs.) Now all our users are stranded on their old version of our application because they can't download updates. Any ideas why this happened and how to fix?
The text was updated successfully, but these errors were encountered: