question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Request timed out on app update on Mac

See original GitHub issue

Specs

  • Versions:
"electron": "^8.0.3",
"electron-builder": "^22.4.0",
  • Target:
Mac

Issue

Hi. I’m facing some serious problems with electron-builder when autoupdating my app.

After running the app, it searches for new update and automatically starts downloading it. This works fine: more and more bytes are downloaded, connection is stable and speed is quite good (4 - 7 Mb/s).

image

But on the bottom of the console, you’ll se an error. It occurs every time and always after about 45 seconds.

I’m also attaching log from autoupdater:

[2020-03-06 13:54:46.250] [error] Error: Error: Request timed out
    at Timeout.n [as _onTimeout] (/Applications/PureDesktopApp.app/Contents/Resources/app.asar/dist/main.js:1:67792)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

It looks like you need to have quite fast internet connection, enough to download the whole update in 45 sec. There are no issues on linux and windows as they support differential download which can be easily downloaded in 45 seconds even when having slow connection.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

7reactions
pverschacommented, Mar 6, 2020

Hi, I just encountered the same error and I found what’s causing this. I haven’t proposed a fix yet, but take a look at my comments on this PR: https://github.com/electron-userland/electron-builder/pull/4649

To me it happens after around 30s (which is the timeout value set for aborting the request after receiving the close-event).

The same issue happens also on other platforms (at least on Windows, but I suspect it affects all platforms). Reverting electron-updater back to version 4.2.2 fixes the issue.

2reactions
qdimkacommented, May 12, 2020

Hi, everybody

I have the same issue on linux.

    "electron": "8.2.0",
    "electron-builder": "22.5.1"
    "electron-updater": "4.3.0"
06:38:58.233 › Checking for update
06:39:01.549 › Found version 0.1.3-226 (url: App.AppImage)
06:39:01.553 › Downloading update from App.AppImage
06:39:01.622 › No cached update info available
06:39:01.881 › File has 2674 changed blocks
06:39:01.990 › Full: 74,723.03 KB, To download: 54,840.58 KB (73%)
06:39:02.001 › Differential download: https://***/app/App.AppImage
06:39:32.038 › Cannot download differentially, fallback to full download: Error: Request timed out
    at Timeout.r [as _onTimeout] (/tmp/.mount_appmjpgzX/resources/app.asar/build/main.bundle.js:1:211914)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
06:40:02.166 › Error: Error: Request timed out
    at Timeout.r [as _onTimeout] (/tmp/.mount_appmjpgzX/resources/app.asar/build/main.bundle.js:1:211914)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
(node:2778) UnhandledPromiseRejectionWarning: Error: Request timed out
    at Timeout.r [as _onTimeout] (/tmp/.mount_appmjpgzX/resources/app.asar/build/main.bundle.js:1:211914)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
(node:2778) UnhandledPromiseRejectionWarning: Error: Request timed out
    at Timeout.r [as _onTimeout] (/tmp/.mount_appmjpgzX/resources/app.asar/build/main.bundle.js:1:211914)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS Big Sur installation timed o… | Apple Developer Forums
I'm getting this error "The request timed out" and "bridgeOS update prepare timed out" on macOS Big Sur 11.0.1 (not beta). I tried...
Read more >
r/mac - Trying to update, always says request timed out ...
First do a normal restart and try again. If that doesn't work try starting in safe mode and installing there. To start it...
Read more >
How to Fix The Request Timed Out An Error Occurred while ...
The Request Timed out when Installing macOS big sur, Cannot Install macOS big sur, How to fix macOS big sur installing error.
Read more >
The Request Timed Out An Error Occured while Installing the ...
the Request Timed Out error when installing macOS Catalina, the Request ... the Selected on macOS Catalina, can't install Catalina update.
Read more >
Gateway Timed Out error in Apple MacOS
a lot of users are downloading or installing Mac OS Catalina at the same time. · there is slow Internet connection. · your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found