Comments (4)
Same issue here with 14.2.5 and testProxy
▲ Next.js 14.2.5
- Local: http://localhost:4000
- Environments: .env
✓ Starting...
✓ Ready in 2.7s
✓ Compiled /src/middleware in 391ms (189 modules)
○ Compiling /[locale]/cms/[...slug] ...
Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap: incorrect header check
Retrying 1/3...
Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap: incorrect header check
Retrying 2/3...
Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap: incorrect header check
Retrying 3/3...
FetchError: Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap: incorrect header check
at Gunzip.<anonymous> (/Users/***/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/node-fetch/index.js:1:53082)
at Gunzip.emit (node:events:530:35)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'Z_DATA_ERROR',
code: 'Z_DATA_ERROR'
}
⨯ Failed to download `Open Sans` from Google Fonts. Using fallback font instead.
Failed to fetch `Open Sans` from Google Fonts.}
from next.js.
Same with 14.2.7 and testProxy
from next.js.
Hi! It also happens to me. I checked you sandbox and we are getting the same error:
✓ Starting...
✓ Ready in 3.5s
○ Compiling / ...
(node:24065) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap: incorrect header check
Retrying 1/3...
Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap: incorrect header check
Retrying 2/3...
Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap: incorrect header check
Retrying 3/3...
FetchError: Invalid response body while trying to fetch https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap: incorrect header check
at Gunzip.<anonymous> (/Users/user/dev/my-app/node_modules/next/dist/compiled/node-fetch/index.js:1:53082)
at Gunzip.emit (node:events:532:35)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'Z_DATA_ERROR',
code: 'Z_DATA_ERROR'
}
⨯ Failed to download `Inter` from Google Fonts. Using fallback font instead.
✓ Compiled / in 10.1s (2395 modules)
GET / 200 in 14979m
I don't know if there is a cache mechanism in NextJS or something like that, but if I remove the testProxy
flag, I start the server and access the site, then add the testProxy
flag again... now the error becomes intermittent.
Moreover, it's affecting the behavior of display: "swap"
because sometimes the font loads and sometimes it doesn't load if I include it. If I remove it, it always loads. Very weird.
from next.js.
Also can confirm this is affecting my build
from next.js.
Related Issues (20)
- Docs: Clarify that `@next/mdx` can replace `next-mdx-remote`
- Modal with parallel routes and dynamic routes catch-all segments HOT 1
- next-typesafe-url lib causes "ReferenceError: require is not defined" since canary v150 in dev mode with turbo
- ECONNREFUSED when call backend API with docker name from /pages/api HOT 1
- Docs: Next Config Support For (Or Note not Supporting) next.config.mts HOT 2
- revalidatePath doesn't work with debouncing and page navigation
- Docs: Import React from "react" not added on the manual installation HOT 3
- Cache-Control is not appended to Dynamic Routing in Next.js 14.2.12 HOT 4
- Redirect function in server action ignores "replace" parameter HOT 1
- Refused to apply style from '/_next/static/css/336e4aea61098b4e.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. HOT 1
- Cookies being set with empty values in production in Next.js HOT 1
- Docs:
- Error: Failed to find Server Action "84c...c2". This request might be from an older or newer deployment. Original error: Cannot read properties of undefined (reading 'workers')
- Next 14.2.12 with react-pdf and pdfjs-dist | Build fails with webpack error: TypeError: Promise.withResolvers is not a function | Passes Vercel build with swcMinify: false HOT 2
- Remove `@opentelemetry/api` from edge bundle when telemetry is disabled HOT 1
- next config output="export" with appDir doesn't work HOT 2
- Headers function causing an empty page to be returned when using Optional Catch-all Segments HOT 3
- Module not found: Can't resolve '_http_common' HOT 2
- WebGL client component only renders when running "npm run dev" and not with "npm start" HOT 2
- Deprecated meta tag "apple-mobile-web-app-capable" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.