0

am working on a project in Node.js with gm library,

every thing is going perfect but when the execution reaches this line

 gm(data).size(function (err, size) {

the execution throw an error

[Error: This socket is closed.]

i am not able to figure it out why this error occur ?

i google it with reference to gm but 0 success,

am confused whether this error is because of gm library or something else

FLF
  • 147
  • 1
  • 11
  • I find it likely that there is another function event in your event loop that is causing this. That being said, I would be curious what the contents of your "data" variable are. You haven't posted very much code. – MobA11y Jun 24 '13 at 14:03
  • no this is the function which cause this error , because i checked by placing console on above and below this function , it console out the above one but not the below , this function through the error – FLF Jun 25 '13 at 05:54
  • i also forget to mention that am using 'mysql-queues' lib for db transaction, – FLF Jun 25 '13 at 05:56
  • the data consist of the image link (path to image) – FLF Jun 25 '13 at 05:57

0 Answers0