title: Nodejs - Range Not Satisfiable
body: <p>Let me start with a stackoverflow user who had the exact same problem as me(I found him through google):</p>
  
  <p><a href="https://stackoverflow.com/questions/38718479/node-js-range-not-satisfiable-sendstream-error-express">Node JS Range Not Satisfiable SendStream.error Express</a></p>
  
  <p>It hasn't been answered, I am guessing many people experience it - why does it happen? I am using NodeJS, express + socket.io, that error gave me no clue and it happened a few times, crashed my server and disconnected my users.
  Could it be because:</p>
  
  <p>1) Someone requested a huge file or an object through AJAX/Socket.io(could be in my case)
  2) Someone sent a huge string through Socket.io
  3) Anything else</p>
  
  <p>Full error:
  RangeNotSatisfiableError: Range Not Satisfiable
      at SendStream.error (node_modules/express/node_modules/send/index.js:275:31)
      at SendStream.send (node_modules/express/node_modules/send/index.js:618:19)
      at onstat (node_modules/express/node_modules/send/index.js:677:10)
      at FSReqWrap.oncomplete (fs.js:123:15)
  RangeNotSatisfiableError: Range Not Satisfiable
      at SendStream.error (node_modules/express/node_modules/send/index.js:275:31)
      at SendStream.send (node_modules/express/node_modules/send/index.js:618:19)
      at onstat (node_modules/express/node_modules/send/index.js:677:10)
      at FSReqWrap.oncomplete (fs.js:123:15)</p>