An unhandled rejection has occurred inside Forge: RequestError: connect ETIMEDOUT 140.82.114.3:443
Pre-flight checklist
- [x] I have read the contribution documentation for this project.
- [x] I agree to follow the code of conduct that this project uses.
- [x] I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.5.0 or 7.6.0
Electron version
33.2.0
Operating system
windows 11
Last known working Electron Forge version
No response
Expected behavior
Successfully packaged
Actual behavior
Steps to reproduce
Additional information
No response
Hi @zhangjiji03, thanks for reporting the issue. It would be helpful to get a bit more context on the problem at hand. Is this what you're encountering when you attempt to package the app? Does the start command work separately from this? Do you usually use a mirror for npm?
@erickzhao if I turn off wifi and run forge, I get
An unhandled rejection has occurred inside Forge:
RequestError: getaddrinfo ENOTFOUND github.com
and the IP address shared is similar enough.
The github.com addresses being accessed are from here: https://github.com/electron/get/blob/e2be2100331a7873a8e2b0b209b7953eef8f9803/src/artifact-utils.ts#L4-L5
EDIT: See also https://stackoverflow.com/questions/68466753/how-to-run-electron-packager-offline-without-internet
On review, it seems upgrading got might fix this? But the version forge is using seems to be limited by forge not supporting esm dependencies in general.