You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/node_www/crawler.x-sells.com/node_modules/mysql/lib/protocol/Parser.js:82
throw err;
^
TypeError: Cannot read property 'query' of undefined
at /node_www/crawler.x-sells.com/autoInit.js:53:19
at Handshake.onConnect (/node_www/crawler.x-sells.com/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/node_www/crawler.x-sells.com/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Handshake.ErrorPacket (/node_www/crawler.x-sells.com/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:8)
at Protocol._parsePacket (/node_www/crawler.x-sells.com/node_modules/mysql/lib/protocol/Protocol.js:271:23)
at Parser.write (/node_www/crawler.x-sells.com/node_modules/mysql/lib/protocol/Parser.js:77:12)
at Protocol.write (/node_www/crawler.x-sells.com/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/node_www/crawler.x-sells.com/node_modules/mysql/lib/Connection.js:82:28)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:529:20)
windows on everything works fine, but when you transfer linux appears this error
tell me how it is solved
The text was updated successfully, but these errors were encountered:
Thanks :) Your second code block is incorrect. It should be as follows:
db.getConnection(function(err,connection){if(err)throwerr;// You *MUST* handle err and not continue execution if// there is an error. this is a standard part of Node.jsconnection.query(/* ... */,[],callback);connection.release();});
error text
windows on everything works fine, but when you transfer linux appears this error
tell me how it is solved
The text was updated successfully, but these errors were encountered: