-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Keep getting and posting /socket.io/?EIO=3&transport=polling&t= #3615
Comments
I am getting the same error too |
Same error |
Are you accessing this through a reverse proxy? Creating a rewrite rule fixed this for me. |
I am getting this error using a reverse proxy. Would you please share with us the rewrite rule that fixed it? |
Same, please do share |
Hi, Try this:
|
Where would i put this code? |
@AvalancheAccessories this is the configuration for NginX, used as a reverse proxy in front of your Socket.IO server(s) Reference: https://socket.io/docs/v4/reverse-proxy/#nginx Regarding the initial issue, the multiple requests might be due to a v2 client which tries to connect. For v3 and above, you need to enable backward compatible mode on the server side: import { Server } from "socket.io";
const io = new Server({
allowEIO3: true
}); Reference: https://socket.io/docs/v4/server-options/#alloweio3 You can check those specific errors by listening to the io.engine.on("connection_error", (err) => {
if (err.code === 5) {
// Unsupported protocol version
}
}); Reference: https://socket.io/docs/v4/server-api/#event-connection_error |
hi, server
client
aws ec2 logs
REQUEST HEADER
everything is working fine in local getting issue in aws server only please help to fix this! |
My backend in ExpressJS and NodeJS used to work well. I just realized that logs exploded the disk (the backend is still functional), because when the backend is on, it keeps trying:
kpi.js GET ...
andindex.js GET ...
are what I print. Here is the code ofopt/funfun/app.js
:Does anyone know what may be the reason?
The text was updated successfully, but these errors were encountered: