IPFS crashes on wake from hibernate
- Dominant language
- JavaScript
- Stars
- 6.6k
- Forks
- 903
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 5
Description
- OS: Windows 11
- Version of IPFS Desktop: 0.24.0
**Describe the bug**
When I wake my computer from hibernation, IPFS crashes.
**To Reproduce**
Steps to reproduce the behavior:
1. Verify IPFS Desktop shows as connected in system tray.
2. Hibernate computer.
3. Wake computer from Hibernation.
4. Notice that IPFS Desktop is off in system tray (grey icon).
5. Notice that the context menu indicates it crashed.
**Expected behavior**
IPFS doesn't crash and fail to recover when waking from hibernate.
**Additional context**
Woke from hibernation at around `2022-10-28T04:59:00Z`. I have a VPN running that may or may not cause some weird blips when the computer wakes from Hibernate as it needs to recover the connection.
```text
2022-10-28T04:59:02.191Z info: [ipfsd] stop daemon STARTED
2022-10-28T04:59:02.370Z info: [ipfsd] stop daemon FINISHED 0.17919450002908707s
2022-10-28T04:59:02.425Z info: [ipfsd] start daemon STARTED
2022-10-28T04:59:04.177Z error: [ipfsd] start daemon FetchError: request to http://127.0.0.1:5001/api/v0/id failed, reason: net::ERR_NETWORK_CHANGED
at ClientRequest. (C:\Users\****\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\electron-fetch\lib\index.js:1391:14)
at ClientRequest.emit (node:events:526:28)
at ClientRequest._die (node:electron/js2c/browser_init:101:8492)
at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7229)
at SimpleURLLoaderWrapper.emit (node:events:526:28)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.