Size: a a a

Sequelize - community (eng/ru)

2020 February 02

LA

Luis Azcuaga in Sequelize - community (eng/ru)
Does the user exists on mysql to access the db?
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
I wonder if you are confusing the DB user with a user within the DB.
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
Luis Azcuaga
For some reason with JEST it tries to user root user, instead of test
console.log routes/auth/login.js:18
     test test
i recive correct data , its ok
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
Luis Azcuaga
I wonder if you are confusing the DB user with a user within the DB.
"test test" is user in users table, thats ok, its not user from config.json
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
ok, so are you sure you have the correct password on the config.json?
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
Or how did you implement jest?
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
Luis Azcuaga
Or how did you implement jest?
that's all implementation
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
Luis Azcuaga
ok, so are you sure you have the correct password on the config.json?
server works good without jest request.
but you can try to run it :)
git clone https://github.com/iCheater/expressServer
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
iCheater iCheater
server works good without jest request.
but you can try to run it :)
git clone https://github.com/iCheater/expressServer
If we cannot fix it now I'll try later, I'm not on my laptop now :(
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
👌
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
I'm reading the article
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
@iCheater can you show your sequelize configuration?
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
This is really weird, it should work
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
Try making the request using Postman
источник

LA

Luis Azcuaga in Sequelize - community (eng/ru)
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
Luis Azcuaga
Try making the request using Postman
yep, postman works, as it should) curl works too, but post request with JEST no)
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
Luis Azcuaga
@iCheater can you show your sequelize configuration?
config.json

{
 "development": {
   "username": "shop_server",
   "password": "shop_server",
   "database": "shop_server_db",
   "host": "127.0.0.1",
   "dialect": "postgres",
   "logging": true
 },
 "test": {
   "username": "root",
   "password": null,
   "database": "database_test",
   "host": "127.0.0.1",
   "dialect": "postgres",
   "operatorsAliases": false
 },
 "production": {
   "username": "root",
   "password": null,
   "database": "database_production",
   "host": "127.0.0.1",
   "dialect": "postgres",
   "operatorsAliases": false
 }
}
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
omg
источник

ii

iCheater iCheater in Sequelize - community (eng/ru)
OK, i have understood
источник