Friday, 17 March 2017

[ANSWERED]node.js mysql error 'ECONNRESET' while inserting

I am trying to insert a file of 50mb to mysql using node.js. I call stored procedure that takes the full content and inserts it (the whole 50MB at once). The error is:
{ Error: read ECONNRESET
    at exports._errnoException (util.js:1022:11)
    at TCP.onread (net.js:569:26)
    --------------------
    at Pool.query (D:\work\repo\b_cohtml\Tools\Performance\node_modules\mysql\lib\Pool.js:199:23)
     ...
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
  code: 'ECONNRESET',
  errno: 'ECONNRESET',
  syscall: 'read',
  fatal: true }

If the mysql max size was the problem I expect to see the mysql error, not connection reset so I can't figure out what the problem is.


via typical

No comments:

Post a Comment