Skip to content

Failed to fetch cache over 2MB #11329

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

Closed
bitsandfoxes opened this issue Sep 11, 2024 · 0 comments · Fixed by #11767
Closed

Failed to fetch cache over 2MB #11329

bitsandfoxes opened this issue Sep 11, 2024 · 0 comments · Fixed by #11767

Comments

@bitsandfoxes
Copy link
Contributor

Steps to Reproduce

Locally reproducible. Happy to chat.

  1. make
  2. yarn dev
  3. Try to navigate to the changes made to the docs

Expected Result

See the changes made to the docs

Actual Result

➜  sentry-docs git:(master) ✗ yarn dev
yarn run v1.22.22
$ yarn enforce-redirects && concurrently "yarn sidecar" "node ./src/hotReloadWatcher.mjs" "next dev"
$ node ./scripts/no-vercel-json-redirects.mjs
[1] ⚡️ Hot reload watcher listening on ws://localhost:8080
$ yarn spotlight-sidecar
$ /Users/bitfox/Workspace/sentry-docs/node_modules/.bin/spotlight-sidecar
[2] (node:54542) [DEP_WEBPACK_JAVASCRIPT_MODULES_PLUGIN] DeprecationWarning: webpack.JavascriptModulesPlugin has moved to webpack.javascript.JavascriptModulesPlugin
[2] (Use `node --trace-deprecation ...` to show where the warning was created)
[2] (node:54542) [DEP_WEBPACK_LIBRARY_TEMPLATE_PLUGIN] DeprecationWarning: webpack.LibraryTemplatePlugin is deprecated and has been replaced by compilation.outputOptions.library or compilation.addEntry + passing a library option
[2] (node:54542) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin
[2] (node:54542) [DEP_WEBPACK_OPTIONS_DEFAULTER] DeprecationWarning: webpack.WebpackOptionsDefaulter is deprecated and has been replaced by webpack.config.getNormalizedWebpackOptions and webpack.config.applyWebpackOptionsDefaults
[0] 🔎 [Spotlight] Sidecar listening on 8969
[0] 🔎 [Spotlight] You can open: http://localhost:8969 to see the Spotlight overlay directly
[2]   ▲ Next.js 14.2.4
[2]   - Local:        http://localhost:3000
[2]   - Environments: .env.development
[2]   - Experiments (use with caution):
[2]     · instrumentationHook
[2]
[2]  ✓ Starting...
[2] (node:54545) [DEP_WEBPACK_JAVASCRIPT_MODULES_PLUGIN] DeprecationWarning: webpack.JavascriptModulesPlugin has moved to webpack.javascript.JavascriptModulesPlugin
[2] (Use `node --trace-deprecation ...` to show where the warning was created)
[2] (node:54545) [DEP_WEBPACK_LIBRARY_TEMPLATE_PLUGIN] DeprecationWarning: webpack.LibraryTemplatePlugin is deprecated and has been replaced by compilation.outputOptions.library or compilation.addEntry + passing a library option
[2] (node:54545) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin
[2] (node:54545) [DEP_WEBPACK_OPTIONS_DEFAULTER] DeprecationWarning: webpack.WebpackOptionsDefaulter is deprecated and has been replaced by webpack.config.getNormalizedWebpackOptions and webpack.config.applyWebpackOptionsDefaults
[2] 🔄 using sdk docs redirects in next.config.js
[2]  ○ Compiling /instrumentation ...
[2]  ✓ Compiled /instrumentation in 1560ms (1327 modules)
[2]  ✓ Ready in 11.6s
[2]  ✓ Compiled /src/middleware in 362ms (451 modules)
[2]  ○ Compiling /[[...path]] ...
[2] (node:54545) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
[2] (node:54545) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
[2]  ✓ Compiled /[[...path]] in 7.5s (9412 modules)
[2] <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (108kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
[2] Failed to set fetch cache https://raw.githubusercontent.com/getsentry/sentry-api-schema/600d5fbcfecb4085f6fd6f482cd6f1615ddc2b37/openapi-derefed.json Error: Failed to set Next.js data cache, items over 2MB can not be cached (2964920 bytes)
[2]     at IncrementalCache.set (/Users/bitfox/Workspace/sentry-docs/node_modules/next/dist/server/lib/incremental-cache/index.js:391:23)
[2]     at eval (webpack-internal:///(rsc)/./node_modules/next/dist/server/lib/patch-fetch.js:454:74)
[2]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2]     at async resolveOpenAPI (webpack-internal:///(rsc)/./src/build/resolveOpenAPI.ts:23:22)
[2]     at async apiCategoriesUncached (webpack-internal:///(rsc)/./src/build/resolveOpenAPI.ts:38:18)
[2]     at async getDocsFrontMatterUncached (webpack-internal:///(rsc)/./src/mdx.ts:99:24)
[2]     at async Object.generateStaticParams (webpack-internal:///(rsc)/./app/[[...path]]/page.tsx:60:18)
[2]     at async buildParams (/Users/bitfox/Workspace/sentry-docs/node_modules/next/dist/build/utils.js:1026:40)
[2]     at async /Users/bitfox/Workspace/sentry-docs/node_modules/next/dist/build/utils.js:1043:33
[2]     at async Object.loadStaticPaths (/Users/bitfox/Workspace/sentry-docs/node_modules/next/dist/server/dev/static-paths-worker.js:47:16)
[2]  ⚠ metadataBase property in metadata export is not set for resolving social open graph or twitter images, using "http://localhost:3000". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase

Additional Info

I've seen this not just on my local machine but on PRs as well.
I.e. #11042 and the corresponding vercel logs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants