-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error: Failed to set Next.js data cache #836
Comments
This looks like the base64 of one of our wasm files. We use |
For Next.js this can be controlled by setting |
I was able to reproduce on the Next.js app router with one of our test routes: https://example-next.arcjet.orb.local/api_app/protect_api_rl. It doesn't reproduce with the pages router. Adding |
I followed the reproduction and added |
Closes #836 We are using `fetch` to base64 decode our Analyze Wasm files in certain runtimes. However, when this is used in the Next.js App Router, it fails because the URL is larger than 2mb. We don't actually need these to go through the `fetch` cache since it isn't making a network call, so we just disable it everywhere.
I have seen one instance of this error with Next.js and had a report from a user about it as well, but I can't reproduce. It logs a huge base64 encoded string and then errors:
The text was updated successfully, but these errors were encountered: