Bug Summary
In Local 10.2.0 on Windows 11 (Fresh install) installed for my user account (not all users), a successful Local Hub sign-in can be cleared if the account’s Gravatar image request fails or times out. This leaves Live Links disabled.
Steps to reproduce
These steps describe the conditions observed on my computer:
- Use a Local Hub account whose profile photo URL points to
www.gravatar.com. - Use a connection where requests to
www.gravatar.comtime out. - Open a running site in Local and sign in to Local Hub.
- Observe that the browser reports a successful login, but Live Links remains disabled in Local.
Expected: An unavailable profile image should fall back to initials or a default image, while the account stays signed in.
Environment Info
- OS: Windows 11 pro, 64-bit; build 26300
- Local: 10.2.0+7022
- Web server: Nginx 1.26.1
- PHP: 8.5.12
- Database: MariaDB 10.11.18
Cause and fix
After authentication, LocalHubAPIService.js fetches the profile image while loading the user profile. A fetch failure can fail the entire profile lookup, after which Local clears the login.
The code is inside:
%LOCALAPPDATA%\Programs\Local\resources\app.asar
└── main/localHubAPI/LocalHubAPIService.js
A local workaround adds a timeout and handles image-fetch failures:
const response = yield fetch(
user.photo_url.replace('&d=mp', '&d=404'),
{ signal: AbortSignal.timeout(5000) }
).catch(() => ({ status: 404 }));
After applying that change, restarting Local, and signing in again, Live Links worked. This is an unofficial modification to Local’s application archive; an update or reinstall may overwrite it. Back up app.asar before changing it.
Applying a local workaround:
- Quit Local completely and back up
app.asar. - Unpack the archive with an ASAR tool.
- Edit
main/localHubAPI/LocalHubAPIService.js, replacing the existing profile-image fetch with the code above. - Repack the archive, including any required ASAR integrity metadata, and replace
resources/app.asar. - Reopen Local, sign in, and enable Live Links.
This workaround restored Live Links for me.