Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get Error #1

Closed
astadipati opened this issue Aug 1, 2017 · 0 comments
Closed

get Error #1

astadipati opened this issue Aug 1, 2017 · 0 comments

Comments

@astadipati
Copy link

After success register and login, then try to make a new register but something happen like code below

[nodemon] starting node index.js
Listening at http://localhost:3000
DB Connected!
C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\protocol\Parser.js:80
throw err; // Rethrow non-MySQL errors
^


TypeError: Cannot read property 'insertId' of undefined
    at Query._callback (C:\projek\node\node-mysql-authentication\config\passport.js:62:39)
    at Query.Sequence.end (C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\protocol\sequences\Sequence.js:88:24)
    at Query.ErrorPacket (C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\protocol\sequences\Query.js:90:8)
    at Protocol._parsePacket (C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\protocol\Protocol.js:280:23)
    at Parser.write (C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\protocol\Parser.js:76:12)
    at Protocol.write (C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\protocol\Protocol.js:39:16)
    at Socket.<anonymous> (C:\projek\node\node-mysql-authentication\node_modules\mysql\lib\Connection.js:103:28)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
[nodemon] app crashed - waiting for file changes before starting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant