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

use postman to post signup, please advise it #2

Open
zachary opened this issue May 8, 2020 · 2 comments
Open

use postman to post signup, please advise it #2

zachary opened this issue May 8, 2020 · 2 comments

Comments

@zachary
Copy link

zachary commented May 8, 2020

Unhandled rejection Error: WHERE parameter "username" has invalid "undefined" value
at MySQLQueryGenerator.whereItemQuery (/Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2184:13)
at /Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2173:25
at Array.forEach ()
at MySQLQueryGenerator.whereItemsQuery (/Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2171:35)
at MySQLQueryGenerator.getWhereConditions (/Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2583:19)
at MySQLQueryGenerator.selectQuery (/Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/dialects/abstract/query-generator.js:1315:28)
at QueryInterface.select (/Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/query-interface.js:1122:27)
at /Users/zach/dev/js/node-js-jwt-auth/node_modules/sequelize/lib/model.js:1757:34
at tryCatcher (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/zach/dev/js/node-js-jwt-auth/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:456:21)

@zachary
Copy link
Author

zachary commented May 8, 2020

change postman body from text to json to resolve it.thanks

@dylanrychlik
Copy link

This doesnt fix issue for me

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

2 participants