Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The service has stopped working due to Figma website changes. #147

Open
shobhit747 opened this issue Jan 12, 2024 · 7 comments
Open

The service has stopped working due to Figma website changes. #147

shobhit747 opened this issue Jan 12, 2024 · 7 comments

Comments

@shobhit747
Copy link

shobhit747 commented Jan 12, 2024

Notes from the maintainer:

Figma currently only requests local fonts on Windows and macOS. They also chose a different port for the service. (18412 -> 44950)

Please upgrade to version 0.3.2 for the port changes. However, we still need to override the browser's user-agent. There is nothing I can do about it.

The issue report on the Figma's official forum: https://forum.figma.com/t/requests-to-font-helper-on-linux-stopped-working/61389

Original bug report

Both the figma.agent.socket and figma.agent.service are enabled but fonts are not appearing on figma in any browser.

Command :

systemctl --user status --now figma-agent.socket

output :

● figma-agent.socket - Figma Agent for Linux
     Loaded: loaded (/home/shobhit/.local/share/systemd/user/figma-agent.socket; enabled; vendor pr>
     Active: active (running) since Fri 2024-01-12 22:10:01 IST; 9min ago
   Triggers: ● figma-agent.service
     Listen: [::]:18412 (Stream)
     CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/figma-agent.socket

Jan 12 22:10:01 mint-Hp systemd[1448]: Listening on Figma Agent for Linux.

Command :

systemctl --user status --now figma-agent.service

output :

● figma-agent.service - Figma Agent for Linux
     Loaded: loaded (/home/shobhit/.local/share/systemd/user/figma-agent.service; enabled; vendor p>
     Active: active (running) since Fri 2024-01-12 22:10:42 IST; 9min ago
TriggeredBy: ● figma-agent.socket
   Main PID: 7487 (figma-agent)
      Tasks: 3 (limit: 4269)
     Memory: 7.0M
        CPU: 215ms
     CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/figma-agent.service
             └─7487 /home/shobhit/.local/share/figma-agent/figma-agent

Jan 12 22:10:42 mint-Hp systemd[1448]: Starting Figma Agent for Linux...
Jan 12 22:10:42 mint-Hp systemd[1448]: Started Figma Agent for Linux.
Jan 12 22:10:42 mint-Hp figma-agent[7487]: [2024-01-12T16:40:42Z INFO  actix_server::builder] Start>
Jan 12 22:10:42 mint-Hp figma-agent[7487]: [2024-01-12T16:40:42Z INFO  actix_server::server] Actix >
Jan 12 22:13:58 mint-Hp figma-agent[7487]: [2024-01-12T16:43:58Z INFO  actix_web::middleware::logge>

Command :

systemctl --user is-enabled figma-agent.socket figma-agent.service

Output :

enabled
enabled
@m4theushw
Copy link

I'm having the same issue. I tested in Chromium and Firefox and in both cases Figma doesn't seem to even be making any request to the agent like in #134 (comment). I tried the cURL command and it returned a JSON with all fonts I've installed.

@m4theushw
Copy link

m4theushw commented Jan 13, 2024

I discovered that Figma only queries the font agent if it is running on an officially supported operating system, i.e. Windows and macOS. Since there's no official client for Linux, it skips the HTTP request. Changing my browser's user agent to a supported OS was enough to bypass this check. I also had to change the port in figma-agent.socket to 44950. After that my local fonts appeared.

@shobhit747
Copy link
Author

I discovered that Figma only queries the font agent if it is running on an officially supported operating system, i.e. Windows and macOS. Since there's no official client for Linux, it skips the HTTP request. Changing my browser's user agent to a supported OS was enough to bypass this check. I also had to change the port in figma-agent.socket to 44950. After that my local fonts appeared.

Thanks! @m4theushw It worked for me as well.

I changed the browser agent to windows and set port ( ListenStream ) to 44950

nano .config/systemd/user/sockets.target.wants/figma-agent.socket

And it worked after restarting the socket and service.

@latin-1
Copy link
Member

latin-1 commented Jan 15, 2024

Let me keep this issue open for tracking purposes.

@latin-1 latin-1 reopened this Jan 15, 2024
@orkben
Copy link

orkben commented Jan 16, 2024

Same issue for me as well. Changing port and user agent string worked. Oddly, changing it to Chrome-Macos as the user agent didn't work, Chrome-Windows as the user agent did though.

@latin-1 latin-1 pinned this issue Jan 16, 2024
@latin-1 latin-1 changed the title Both the figma.agent.socket and figma.agent.service are enabled but fonts are not appearing on figma in any browser. The service has stopped working due to upstream changes. Jan 16, 2024
@latin-1 latin-1 changed the title The service has stopped working due to upstream changes. The service has stopped working due to Figma website changes. Jan 20, 2024
@blackinitial
Copy link

same problem with user agent browser. change to windows agent its work, the local fonts was appeared.

@IgorFerreiraMoraes
Copy link

Figma Agent stopped working after Chrome update

I'm on Fedora and today (May 11th) I updated my Chrome to 124.0.6367.201, after that my local fonts stopped working.
It was tested on both the Flatpak and the RPM package. I know the problem is on Chrome's side since it works on Firefox. Reporting here in case someone also finds themselves with the problem.

Here is the user-agent:
User Agent

The port:
Socket Port

My .fonts folder:
Fonts Folder

And the Figma missing fonts warning:
Figma Warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants