sails: 'EMAXBUFFER: An Upstream timed out before it was plugged into a receiver.

Hi,

I’m using an angular upload, the upload seems fine but I getting this when trying to cath the stream.on(‘error’, function(){}) callback.

message: ‘EMAXBUFFER: An Upstream <file> timed out before it was plugged into a receiver. It was still unused after waiting 2500ms. You can configure this timeout by changing the maxTimeToBuffer option.’ }

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

in my case I am posting two arrays, first is files array and second is fileNotes array like this.

let projectRefFiles: Array<{file: File, fileNote: string}> = projectRefFilesArray;
let formData:FormData = new FormData();
  // For multiple files
  for (let i = 0; i < projectRefFiles.length; i++) {
       formData.append(`files[]`, projectRefFiles[i].file, projectRefFiles[i].file.name);
       formData.append(`notes[]`, projectRefFiles[i].fileNote);
  }

I got this error:

verbose: Error: EMAXBUFFER: An Upstream (files[]) timed out before it was plugged into a receiver. It was still unused after waiting 4500ms. You can configure this timeout by changing the maxTimeToBuffer option. silly: res.ok() :: Sending 200 (“OK”) response