Next.js Discord

Discord Forum

Weird issue while using caddy reverse_proxy in a development environment.

Unanswered
Flammulated Owl posted this in #help-forum
Open in Discord
Flammulated OwlOP
There is something really weird going on in my developement environment. Basically when I'm running the dev server normally I have no issue. However if I instead try and run with the dev server behind a caddy reverse proxy after the first compilation the dev server just hangs and after a while I get a out of memory error. Has anything like this ever happened to anyone?

next:  ○ Compiling /next/app ...
next:  ✓ Compiled /next/app in 17.3s (6157 modules)
next: 
next: <--- Last few GCs --->
next:
next: [4752:00000291D2D91000]   238626 ms: Mark-Compact 4044.9 (4141.2) -> 4030.6 (4142.4) MB, pooled: 0 MB, 1622.37 / 0.00 ms  (average mu = 0.073, current mu = 0.038) allocation failure; scavenge might not succeed
next: [4752:00000291D2D91000]   242058 ms: Mark-Compact 4046.3 (4142.4) -> 4032.1 (4143.9) MB, pooled: 0 MB, 3369.11 / 0.00 ms  (average mu = 0.037, current mu = 0.018) allocation failure; scavenge might not succeed
next:
next:
next: <--- JS stacktrace --->
next:
next: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
next: ----- Native stack trace -----
next:
next:  1: 00007FF67D6CDA2B node::SetCppgcReference+15611
next:  2: 00007FF67D63AFE4 DSA_meth_get_flags+86548
next:  3: 00007FF67E29E351 v8::Isolate::ReportExternalAllocationLimitReached+65
next:  4: 00007FF67E28AF76 v8::Function::Experimental_IsNopFunction+2918
next:  5: 00007FF67E0D4DA0 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+31760
next:  6: 00007FF67E0CEA0D v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+6269
next:  7: 00007FF67E0CA2A5 v8::CpuProfileNode::GetScriptResourceNameStr+189429
next:  8: 00007FF67D96568D BIO_ssl_shutdown+189
next:  9: 7FF8000000000000
caddy: {"level":"error","ts":1723818821.237545,"logger":"http.log.error","msg":"read tcp [::1]:51905->[::1]:3000: wsarecv: An existing connection was forcibly closed by the remote host.","request":{"remote_ip":"127.0.0.1","remote_port":"51904","client_ip":"127.0.0.1","proto":"HTTP/2.0","method":"GET","host":"dev.swsl.n1xx1.me","uri":"/next/app","headers":{"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Site":["none"],"Cookie":[],"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Not)A;Brand\";v=\"99\", \"Google Chrome\";v=\"127\", \"Chromium\";v=\"127\""],"Sec-Ch-Ua-Mobile":["?0"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"],"Sec-Fetch-User":["?1"],"Accept-Language":["it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5,ja;q=0.4"],"Sec-Fetch-Dest":["document"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Priority":["u=0, i"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Fetch-Mode":["navigate"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"dev.swsl.n1xx1.me"}},"duration":183.392485,"status":502,"err_id":"a6g49byhr","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}

0 Replies