majodev / google-webfonts-helper

A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
https://gwfh.mranftl.com
MIT License
12.02k stars 420 forks source link

Internal Server Error at font "Wix Madefor Text" #177

Closed Phascolarctidae closed 1 year ago

Phascolarctidae commented 1 year ago

Hi, thank you for making this project. We have a little problem with the api. The font "Wix Madefor Text" cause an API-Error/Internal Server Error.

See: https://gwfh.mranftl.com/fonts/wix-madefor-text?subsets=latin https://gwfh.mranftl.com/api/fonts/wix-madefor-text?subsets=latin

Best regards

majodev commented 1 year ago

Looks like a Google Fonts API / CSS issue:

# fetch Wix Madefor Text CSS errors
curl -I 'http://fonts.googleapis.com/css?family=Wix%20Madefor%20Text&subset=latin'
HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Date: Mon, 05 Jun 2023 07:35:59 GMT
Content-Length: 1648
Cross-Origin-Opener-Policy: same-origin-allow-popups
Cross-Origin-Resource-Policy: cross-origin
Server: ESF
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff

# fetch Wix Madfor Display CSS is fine
curl -I 'http://fonts.googleapis.com/css?family=Wix%20Madefor%20Display&subset=latin'
HTTP/1.1 200 OK
Content-Type: text/css; charset=utf-8
Access-Control-Allow-Origin: *
Timing-Allow-Origin: *
Content-Length: 235
Expires: Mon, 05 Jun 2023 07:36:08 GMT
Date: Mon, 05 Jun 2023 07:36:08 GMT
Cache-Control: private, max-age=86400
Cross-Origin-Resource-Policy: cross-origin
Cross-Origin-Opener-Policy: same-origin-allow-popups
Server: ESF
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff

I'm afraid there is nothing I/we can actually do about it currently. The Google Fonts API claims this font is available, while fetching the associated CSS yields an error...

Phascolarctidae commented 1 year ago

Ok thank u. I opened a issue on google/fonts .

Phascolarctidae commented 1 year ago

FYI https://github.com/google/fonts/issues/6344

Phascolarctidae commented 1 year ago

The issue/ticket has been resolved and closed by Google. Thank u.