After several hours of downloading (typically around the four-hour mark) the application stops downloading and produces the following error:
2026/07/08 00:06:43 websocket: close 1006 (abnormal closure): unexpected EOF
2026/07/08 00:06:43 Error writing JSON to websocket: write tcp [::1]:8080->[::1]:63349: use of closed network connection
Expected behavior
Continue to download map tiles until all requested tiles are on the local device
Desktop:
OS: Windows 11 Pro 25H2
Browser: Microsoft Edge
Version: 150.0.4078.48 (Official build) (64-bit)
Additional context
Happy to answer questions or try different methodologies. . .
Application ends prematurely with error message during large downloads at slow speeds.
**To Reproduce**
Steps to reproduce the behavior:
1. Open Command Prompt (Windows)
2. Enter Command - "D:\Temporary\Offline Maps\Map-tile-downloader.exe" -maps-directory "D:\Temporary\Offline Maps\maps" -max-workers 2 -rate-limit 5
3. Result = 2026/07/07 19:23:00 Starting server on :8080
2026/07/07 19:26:46 Starting download for area: [[{36.46988944681576 -75.81665039062501} {36.46105407505434 -78.27758789062501} {39.812755695478145 -78.2720947265625} {39.791654835253425 -75.46508789062501} {39.66491373749131 -75.52551269531251} {39.50404070558418 -75.5584716796875} {39.35129035526705 -75.45410156250001} {39.21523130910493 -75.37170410156251} {39.0533181067413 -75.3662109375} {38.92095542046727 -75.28930664062501} {38.81831117374662 -75.17395019531251} {38.7283759182398 -75.05310058593751} {38.53957267203907 -75.03662109375001} {38.33303882235456 -75.07507324218751} {38.11727165830543 -75.14648437500001} {37.93553306183642 -75.28381347656251} {37.77071473849611 -75.44311523437501} {37.66208079655377 -75.56945800781251} {37.496652341233364 -75.60791015625001} {37.31775185163688 -75.70129394531251} {37.16031654673677 -75.81665039062501} {37.068327517596586 -75.97045898437501} {36.958671131530316 -76.00341796875}]], zoom: 11-15, map style: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
4. After several hours of downloading (typically around the four-hour mark) the application stops downloading and produces the following error:
2026/07/08 00:06:43 websocket: close 1006 (abnormal closure): unexpected EOF
2026/07/08 00:06:43 Error writing JSON to websocket: write tcp [::1]:8080->[::1]:63349: use of closed network connection
**Expected behavior**
Continue to download map tiles until all requested tiles are on the local device
**Desktop:**
- OS: Windows 11 Pro 25H2
- Browser: Microsoft Edge
- Version: 150.0.4078.48 (Official build) (64-bit)
**Additional context**
Happy to answer questions or try different methodologies. . .
<!-- github-sync-id:4854451131 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Application ends prematurely with error message during large downloads at slow speeds.
To Reproduce
Steps to reproduce the behavior:
2026/07/07 19:26:46 Starting download for area: {36.46988944681576 -75.81665039062501} {36.46105407505434 -78.27758789062501} {39.812755695478145 -78.2720947265625} {39.791654835253425 -75.46508789062501} {39.66491373749131 -75.52551269531251} {39.50404070558418 -75.5584716796875} {39.35129035526705 -75.45410156250001} {39.21523130910493 -75.37170410156251} {39.0533181067413 -75.3662109375} {38.92095542046727 -75.28930664062501} {38.81831117374662 -75.17395019531251} {38.7283759182398 -75.05310058593751} {38.53957267203907 -75.03662109375001} {38.33303882235456 -75.07507324218751} {38.11727165830543 -75.14648437500001} {37.93553306183642 -75.28381347656251} {37.77071473849611 -75.44311523437501} {37.66208079655377 -75.56945800781251} {37.496652341233364 -75.60791015625001} {37.31775185163688 -75.70129394531251} {37.16031654673677 -75.81665039062501} {37.068327517596586 -75.97045898437501} {36.958671131530316 -76.00341796875}, zoom: 11-15, map style: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
2026/07/08 00:06:43 websocket: close 1006 (abnormal closure): unexpected EOF
2026/07/08 00:06:43 Error writing JSON to websocket: write tcp [::1]:8080->[::1]:63349: use of closed network connection
Expected behavior
Continue to download map tiles until all requested tiles are on the local device
Desktop:
Additional context
Happy to answer questions or try different methodologies. . .