-1
When I connect to my database locally it works normally. But when I deploy to Heroku returns me the following error:
Request Error: No connection is specified for that request
My configuration object is as follows:
var sql = require("seriate");
var config = {
"server": "SERVER",
"user": "USER_NAME",
"password": "PASSWORD",
"database": "DATABASE_NAME",
"pool": {
"max": 10,
"min": 4,
"idleTimeoutMillis": 60000
}
};
sql.setDefaultConfig(config);
module.exports = sql
The credentials are correct, since I can connect to the bank locally. If anyone has anything to add will help me already a lot, I am hours researching and trying to solve and nothing.