amazon-web-servicessocket.iosails.jssails.io.js

Sails.js has socket.io issues on AWS, but not locally


I'm building an app called Tuftslife, and when running locally it works fine, but when I put it on AWS, it works for a little, outputs a lot of errors (like those below) and then crashes a little while later and only returns 500s. Our theory is that these requests are never timing out and overwhelming the server.

The issue I'm having

We tried turning off socket.io using this gist but it doesn't seem to have worked. What are we doing wrong?


Solution

  • Deleting the entire file that does socket.io on the frontend ended up muting our issue. I don't know enough about these things to diagnose exactly what we were doing. Oh well, works now.