TypeError: fetch failed
Unanswered
neon posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11600:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async invokeRequest (/home/neon/dev/portfolio/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:17:12)
at async invokeRender (/home/neon/dev/portfolio/node_modules/next/dist/server/lib/router-server.js:254:29)
at async handleRequest (/home/neon/dev/portfolio/node_modules/next/dist/server/lib/router-server.js:447:24)
at async requestHandler (/home/neon/dev/portfolio/node_modules/next/dist/server/lib/router-server.js:464:13)
at async Server.<anonymous> (/home/neon/dev/portfolio/node_modules/next/dist/server/lib/start-server.js:117:13) {
cause: Error: connect ECONNREFUSED ::1:42933
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 42933
}
}
I get this error randomly while wokring on my project
41 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Spectacled bear
Seems you are trying to connect to other server which is blocked or not accessible
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Barbary Lion
ou should give the relevant code because I have 0 idea what you are trying to do
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
The thing is, I don't know what part of the code is causing it. The error just randomly appears when i refresh the page (not always)
I am not really connecting to any server
it's just a static client-side portfolio site, with some threejs stuff
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Spectacled bear
Wel I thought you were going to do the connection thing
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Barbary Lion
is this error affecting your site at all?
at least show a screen share, an error message is not enough to help you
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
I mean, the site shows a 500 Internal Server Error page
and i have to restart
It's also pretty hard to reproduce, as it randomly appears sometimes when I reload the website
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Barbary Lion
are there any fetches in your code?
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
Nope
if you want you can look at the code here: https://github.com/goodboyneon/goodboyneon.github.io
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Barbary Lion
does this error happen locally
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
yes
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Barbary Lion
delete node modules and do npm install again
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
sure
btw im using yarn, is that somehow might be an issue
also, I say let's leave this thread open for a while, as I can't confirm right away if the issue is fixed or not.
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Barbary Lion
try wiht npm wont hurt
![Avatar](https://cdn.discordapp.com/avatars/637036522599612446/c43d41a94293b860d4b88ab1f12737e2.webp?size=256)
Excigma
https://nextjs-forum.com/post/1153751942447763506#message-1153751942447763506
https://nextjs-forum.com/post/1153605746328600617#message-1153605746328600617
https://nextjs-forum.com/post/1153455404764905502#message-1153455404764905502
https://nextjs-forum.com/post/1153173480670502952#message-1153173480670502952
https://nextjs-forum.com/post/1153423485704605759#message-1153423485704605759
https://discord.com/channels/752553802359505017/752647196419031042/1153296056931594250
https://discord.com/channels/752553802359505017/752647196419031042/1151192057591902238
https://nextjs-forum.com/post/1146209773046472727#message-1146209773046472727
https://discord.com/channels/752553802359505017/752647196419031042/1146154133083132004
https://discord.com/channels/752553802359505017/752647196419031042/1146154262708113579
https://nextjs-forum.com/post/1145373452782555238#message-1145373452782555238
https://nextjs-forum.com/post/1144738945997996112#message-1144738945997996112
https://nextjs-forum.com/post/1143569449597800498#message-1143569449597800498
https://nextjs-forum.com/post/1141790913052553216#message-1141790913052553216 seems common :(
https://nextjs-forum.com/post/1153605746328600617#message-1153605746328600617
https://nextjs-forum.com/post/1153455404764905502#message-1153455404764905502
https://nextjs-forum.com/post/1153173480670502952#message-1153173480670502952
https://nextjs-forum.com/post/1153423485704605759#message-1153423485704605759
https://discord.com/channels/752553802359505017/752647196419031042/1153296056931594250
https://discord.com/channels/752553802359505017/752647196419031042/1151192057591902238
https://nextjs-forum.com/post/1146209773046472727#message-1146209773046472727
https://discord.com/channels/752553802359505017/752647196419031042/1146154133083132004
https://discord.com/channels/752553802359505017/752647196419031042/1146154262708113579
https://nextjs-forum.com/post/1145373452782555238#message-1145373452782555238
https://nextjs-forum.com/post/1144738945997996112#message-1144738945997996112
https://nextjs-forum.com/post/1143569449597800498#message-1143569449597800498
https://nextjs-forum.com/post/1141790913052553216#message-1141790913052553216 seems common :(
try downgrading to 13.4.12
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
Just wondering, is this fixed in the new release?
![Avatar](https://cdn.discordapp.com/avatars/637036522599612446/c43d41a94293b860d4b88ab1f12737e2.webp?size=256)
Excigma
I haven't tried, some people found success upgrading to canary...
there is a GitHub issue where at least one person says it persists...
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
I have upgraded, let's see how things go
![Avatar](https://cdn.discordapp.com/avatars/637036522599612446/c43d41a94293b860d4b88ab1f12737e2.webp?size=256)
Excigma
fingers crossed... I think someone mentioned running out of memory and a worker thread crashing
and the requests get sent to a crashed worker so econnrefused?
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
yes either 13.5.1 or 13.4.12 should work
try 13.5.1 first
if it doesn't work then go to 13.4.12 where it will definitely work
![Avatar](https://cdn.discordapp.com/avatars/637036522599612446/c43d41a94293b860d4b88ab1f12737e2.webp?size=256)
Excigma
memory usage is very high though, my issue might be memory related..
next dev server uses 3gb+ ram
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
high memory usage is common to everyone and to every version, we have to live with it here
![Avatar](https://cdn.discordapp.com/avatars/637036522599612446/c43d41a94293b860d4b88ab1f12737e2.webp?size=256)
Excigma
yeah
cries in 8gb
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
lol i have 16 GB RAM and still feel it's not enough
![Avatar](https://cdn.discordapp.com/avatars/816253376962625537/e805bf0e34d80b71fddc7a2bc30d6c60.webp?size=256)
neonOP
I can definitely agree, with just 6 gigs of ram, I constantly have to worry about the memory usage reaching 100% and crashing my system
![Avatar](https://cdn.discordapp.com/avatars/637036522599612446/c43d41a94293b860d4b88ab1f12737e2.webp?size=256)
Excigma
yeah my integrated graphics dies and everything goes black every once in a while