I'm getting GET /socket.io requests all the time, but I'm not even using socket.io
Unanswered
Macao paper wasp posted this in #help-forum
Macao paper waspOP
Hey! I don't know what causes this, but when I run my project with npm run dev, I get messages in the terminal like in the picture. I don't even know what socket.io is, and why it's making these requests, does anyone know why?
48 Replies
Macao paper waspOP
package.json:
{
"name": "authjs-email",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@auth/prisma-adapter": "^2.4.1",
"@stripe/stripe-js": "^4.0.0",
"jsonwebtoken": "^9.0.2",
"next": "14.2.4",
"next-auth": "^5.0.0-beta.19",
"nodemailer": "^6.9.14",
"react": "^18",
"react-dom": "^18",
"react-hot-toast": "^2.4.1",
"stripe": "^16.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@prisma/client": "^5.15.1",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"daisyui": "^4.12.8",
"postcss": "^8",
"prisma": "^5.15.1",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
"name": "authjs-email",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@auth/prisma-adapter": "^2.4.1",
"@stripe/stripe-js": "^4.0.0",
"jsonwebtoken": "^9.0.2",
"next": "14.2.4",
"next-auth": "^5.0.0-beta.19",
"nodemailer": "^6.9.14",
"react": "^18",
"react-dom": "^18",
"react-hot-toast": "^2.4.1",
"stripe": "^16.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@prisma/client": "^5.15.1",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"daisyui": "^4.12.8",
"postcss": "^8",
"prisma": "^5.15.1",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
Macao paper waspOP
I just opened a different project, and run on localhost, getting the same thing there
might be your browser extension
try a diff browser
Macao paper waspOP
okay, one moment
@aardani might be your browser extension
Macao paper waspOP
I didn't even opened a browser tab, i'm getting it
Right after npm run dev
might be a background service that is actively hitting localhost:3000/socket.io
Macao paper waspOP
In my pc or in the browser?
could be both but you said that you "didn't even opened a browser tab"
try setting up a http server and listen to port 3000
and console log
Macao paper waspOP
Like this:
?
yeah
its not nextjs's problem since it also happens outside of the project
so it must be something in your computer thats accessing port 3000
Macao paper waspOP
how can I find it?
not sure
you can wait for other helpers
or you can just run your project in a sandbox, like codesandbox or stackblitz
or run it in other ports than 3000
Macao paper waspOP
Yes, but I guess it's not a good thing that this is getting called every time
or just reinstall your OS
or safely check your processes if there is any out of ordinary processes
Macao paper waspOP
I just ran it on different port, not getting the issue
My pc just updated to win 11, might be the issue
ur pc updating to win 11 sounds the least likely of whats causing the issue
Macao paper waspOP
I have no idea what causes this, sorry
But annoys a lot
i know, but i dont know how to help more, sorry
i just help what i can
Macao paper waspOP
Thanks, you helped a lot
I'm not marking a solution yet, maybe I find the cause
Russian Spaniel
why don't you start from a basic app and then add in each package one by one. then you'll find out which is making the request
Macao paper waspOP
I did
@Russian Spaniel why don't you start from a basic app and then add in each package one by one. then you'll find out which is making the request
Macao paper waspOP
Started from scrath
It's not coming from nextjs
Russian Spaniel
have you tried:
netstat -anob ?should tell you who is running
have you rebooted ?
unfortunately I can't help because it's windows and I haven't used it since '08?
@Russian Spaniel unfortunately I can't help because it's windows and I haven't used it since '08?
Macao paper waspOP
No problem, hopefully I will find the source of the issue
i have the same issue , how to solve it ??
@Macao paper wasp
Elf Owl
hello