pradhanr03 / wicki

0 stars 0 forks source link

my login is not working #1

Closed pradhanr03 closed 9 years ago

pradhanr03 commented 9 years ago

So, I keep getting an error on my console and I'm not sure what's causing this error.

POST /users 200 315.292 ms - 1461 { [error: syntax error at or near "["] name: 'error', length: 83, severity: 'ERROR', code: '42601', detail: undefined, hint: undefined, position: '35', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'scan.l', line: '1053', routine: 'scanner_yyerror' } undefined /home/rubina/fundamentals/wicki/db.js:39 console.log(result.rows); ^ TypeError: Cannot read property 'rows' of undefined at null.callback (/home/rubina/fundamentals/wicki/db.js:39:27) at Query.handleError (/home/rubina/fundamentals/wicki/node_modules/pg/lib/query.js:97:17) at null. (/home/rubina/fundamentals/wicki/node_modules/pg/lib/client.js:166:26) at emit (events.js:107:17) at Socket. (/home/rubina/fundamentals/wicki/node_modules/pg/lib/connection.js:109:12) 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:538:20)