Replies: 2 comments
-
For your first question, are you fetching a large amount of data? You could also be running low on system memory (i.e. RAM). Please provide environment information by running |
Beta Was this translation helpful? Give feedback.
-
I had the same bug and after hours of digging found the error in my code. It was an infinite loop caused by a mistake in the JWT tokens and authentication flow, where a condition triggered the token function to repeat endlessly, eventually consuming all the memory. That is why increasing memory also didn't work. The cause might be different for you, but just a tip: check your code for infinite loops and try to comment out parts of it - I see that you are also working with sessions and stuff like that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
JavaScript heap out of memory Error
Firstly, do you know the cause of this error?
Secondly, is there a problem with the middleware format I am using?
Additional information
Firstly, do you know the cause of this error?
Second, manage the session through middleware.js
Is there any chance that this method of use could be problematic?
I'm getting so frustrated that I can't figure this out.
I'd appreciate any help, like this.
Beta Was this translation helpful? Give feedback.
All reactions