-
Notifications
You must be signed in to change notification settings - Fork 135
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
Lambda server-function is unstable on AWS #189
Comments
What nextjs version are you using? Be sure to stick to 13.4.12; see issues and PR for details regarding all the issues. |
Hi @khuezy ,
These errors also occur with soure: https://github.com/amannn/next-intl/tree/main/examples/example-next-13-next-auth P/S: When we run 2 sources at local with 'yarn dev' , they work fine. |
Yeah there is an issue right now with middleware rewrite and app dir. In the meantime you could try adding a catch all routes at the root, it might fix the issue |
Thanks @conico974 , @khuezy . |
We're trying to get all the 13.4.13 fixes merged this week and get out a |
Thank you for telling me. |
We're using open-next to build nextjs app.
We also use next-intl and next-auth in our project.
Refer: https://github.com/amannn/next-intl/tree/main/examples/example-next-13-next-auth
Deploy on AWS Services: CloudFront, S3, Lambda.
After deploy, all features works fine.
But our production is unstable.
Sometime, it cannot show homepage. Only return blank page with null text.
Check AWS CloudWatch log, it shows error:
2023-08-28T02:48:05.865Z b263eb20-4f6d-4e01-bb6d-3a2751e41411 ERROR TypeError: Cannot read properties of null (reading 'useCallback') at Object.useCallback (/var/task/node_modules/react/cjs/react.development.js:1646:21) at InsertedHTML (/var/task/node_modules/next/dist/server/app-render/app-render.js:861:52) at Je (/var/task/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.edge.production.min.js:121:272) at Z (/var/task/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.edge.production.min.js:128:91) at Ee (/var/task/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.edge.production.min.js:137:422) at AsyncLocalStorage.run (node:async_hooks:338:14) at Timeout._onTimeout (/var/task/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.edge.production.min.js:150:403) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)
I created global-error and errors for each routing. It not catch anything.
When server-function return null with http status code is 200 ?
The text was updated successfully, but these errors were encountered: