RESOLUTION: Live Links disabled even after successful login because Gravatar times out

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:

  1. Use a Local Hub account whose profile photo URL points to www.gravatar.com.
  2. Use a connection where requests to www.gravatar.com time out.
  3. Open a running site in Local and sign in to Local Hub.
  4. 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

  1. OS: Windows 11 pro, 64-bit; build 26300
  2. Local: 10.2.0+7022
  3. Web server: Nginx 1.26.1
  4. PHP: 8.5.12
  5. 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:

  1. Quit Local completely and back up app.asar.
  2. Unpack the archive with an ASAR tool.
  3. Edit main/localHubAPI/LocalHubAPIService.js, replacing the existing profile-image fetch with the code above.
  4. Repack the archive, including any required ASAR integrity metadata, and replace resources/app.asar.
  5. Reopen Local, sign in, and enable Live Links.

This workaround restored Live Links for me.

The solution to this bug is shared in the bug report written above. I want to make sure we solve it directly in the software for the next Local update.

Thank you for sharing this so others can find it if they need it, @TropicalDream! This is a bug we have been aware of; however, in the spirit of transparency, this is not something we’re likely to address in upcoming releases. The reason is that we are exploring solutions to provide Live Links without Local Hub, and in the near future there may be a different experience for enabling or disabling LL. More details on that will come, but I wanted to provide some clarity here on why this isn’t a priority at the moment.